Software Developer's Kit - ChemDraw

Send comments on this topic
Rotate Method
See Also 
degrees
Number of degrees by which to rotate the objects.
rotateLabels
Default value is False, i.e. does not rotate the labels.

Description

Member of ChemDrawControl.Objects.

Rotates these objects by a certain amount of degrees

Syntax

Visual Basic
Public Sub Rotate( _
   ByVal degrees As Double, _
   Optional ByVal rotateLabels As Boolean = False _
) 

Parameters

degrees
Number of degrees by which to rotate the objects.
rotateLabels
Default value is False, i.e. does not rotate the labels.

Example

'Rotates 90 degrees
 Private Sub Command1_Click()
     Dim myOBjs As ChemDrawCtl.Objects 
     Set myObjs = ChemDrawCtl.Selection.Objects
     myObjs.Rotate 90
 End Sub

See Also