Previous Document Next Document

Object Model Reference : Classes : L : Layer : Methods : Layer.CreateGuideAngle


Layer.CreateGuideAngle

Function CreateGuideAngle(x As Double, y As Double, Angle As Double) As Shape

Description

Member of Layer

The CreateGuideAngle method creates a guideline, at a specified location on a layer, by using a point and an angle.

Parameter
Description
x
Specifies the x-coordinate for the point that defines the guideline. This value is measured in document units.
y
Specifies the y-coordinate for the point that defines the guideline. This value is measured in document units.
Angle
Specifies the degree to which the guideline is slanted. Values range from 0 to 360 degrees.

VBA example

The following VBA example creates 10 guidelines that intersect at the center of the page.

Sub Test()
 Const an As Long = 10
 Dim i As Long
 ActiveDocument.DrawingOriginX = 0
 ActiveDocument.DrawingOriginY = 0
 For i = 0 To an - 1
  ActiveLayer.CreateGuideAngle 0, 0, i * 360 / an
 Next i
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.