API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CreateGuideAngle method
Creates a guide by using one point and an angle
Syntax:
Function CreateGuideAngle(ByVal x As Double, ByVal y As Double, ByVal Angle As Double) As Shape
Parameters:
Name Type Description
x
Double
y
Double
Angle
Double
Remarks:
The CreateGuideAngle method creates a guideline, at a specified location on a layer, by using a point and an angle.
Examples:
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