Previous Document Next Document

Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.Rotate


NodeRange.Rotate

Sub Rotate(Angle As Double, [UseCenterPoint As Boolean = False], [RotationCenterX As Double], [RotationCenterY As Double])

Description

Member of NodeRange

The Rotate property rotates the nodes in a node range as though the node range were a separate shape object.

Parameter
Description
Angle
Specifies the angle, measured in degrees, to rotate the node range
UseCenterPoint
Specifies whether to rotate the node range around its center point. This parameter is optional, and its default value is False.
RotationCenterX
Specifies the x-coordinate of the center of rotation. This parameter is optional, and its default value is 0.
RotationCenterY
Specifies the y-coordinate of the center of rotation. This parameter is optional, and its default value is 0.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.