Software Developer's Kit - ChemDraw

Send comments on this topic
Angle Property
See Also 

Description

Member of ChemDraw Control.Caption.

Sets and returns the rotation angle of this caption.

Property type

Read-write property

Syntax

Visual Basic
Public Property Angle() As Double

Return Type

Double

Remarks

This property rotates the caption. The angle is measured in degrees. A positive value rotates the caption clockwise and a negative value rotates the caption anti clockwise.

Example

'Declares a variable caption
 Dim myCaption As ChemDrawControl10Ctl.Caption

'This example reads/sets the caption angle 
 Private Sub cmdCommand_Click()
     Set myCaption = ctlChemDraw.Captions.Item(1)
     Text1.text = myCaption.Angle 
     myCaption.Angle = 90
 End Sub

See Also