Software Developer's Kit - ChemDraw

Send comments on this topic
IsStraightArrow Property
See Also 

Description

Member of ChemDraw Control.Arrow

Returns whether this arrow is a straight arrow.

Property type

Read-only property

Syntax

Visual Basic
Public Property IsStraightArrow() As Boolean

Return Type

Boolean

Remarks

For a straight arrow this property will be True (IsArc will be False).

For a curved arrow this property will be False (IsArc be True).

Example

'Declares variable vArrow
 Dim vArrow As ChemDrawControl10Ctl.Arrow
'Checks that there is an arrow loaded in the variable
 If Selection.Arrows.Count < 1
Then
     Exit Sub
 End If

 Private Sub cmdStraightArrow_Click()
    'Returns whether the arrow is straight or not - AngularSize=0 
     Text1.Text = vArrow.StraightArrow

 End Sub

 

See Also