Previous Document Next Document
Layer.CreateGuideAngle

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

Member of Layer

The CreateGuideAngle method creates a guideline using a point and an angle.

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

The following code 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 2007 Corel Corporation. All rights reserved.