API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.Rotate method
Rotates the nodes within the range as a shape
Syntax:
Sub Rotate(ByVal Angle As Double, Optional ByVal UseCenterPoint As Boolean = False, Optional ByVal RotationCenterX As Double = 0, Optional ByVal RotationCenterY As Double = 0)
Parameters:
Name Type Description
Angle
Double
UseCenterPoint
Boolean
Specifies whether to rotate the node range around its center point.
RotationCenterX
Double
Specifies the x-coordinate of the center of rotation.
RotationCenterY
Double
Specifies the y-coordinate of the center of rotation.
Remarks:
The Rotate property rotates the nodes in a node range as though the node range were a separate shape object.
Examples:
The following VBA example rotates the selected nodes 30° around the geometrical center of their node range.
Sub Test()
Dim nr As NodeRange
Set nr = ActiveShape.Curve.Selection
ActiveDocument.ReferencePoint = cdrCenter
nr.Rotate 30 
End Sub