Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.Rotate |
Sub Rotate(Angle As Double, [UseCenterPoint As Boolean = False], [RotationCenterX As Double], [RotationCenterY As Double])
Member of NodeRange
The Rotate property rotates the nodes in a node range as though the node range were a separate shape object.
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 |
Copyright 2013 Corel Corporation. All rights reserved.