Object Model Reference : Classes : L : Layer : Methods : Layer.CreateGuideAngle |
Function CreateGuideAngle(x As Double, y As Double, Angle As Double) As Shape
Member of Layer
The CreateGuideAngle method creates a guideline, at a specified location on a layer, by using a point and an angle.
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 |
Copyright 2013 Corel Corporation. All rights reserved.