Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.Arrows

Returns the number of arrows in the arrows collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of arrows in a collection of arrows.

Example

'Declares variables
 Dim myArrows As ChemDrawControl11Ctl.Arrows
 Set myArrows = ctlChemDraw.Selection.Objects.Arrows

 Private Sub cmdArrows_Click()
    'returns the application of the arrows collection
     Text1.text = MyArrows.Application
    'returns the number of arrows in the arrow collection
     Text2.text = MyArrows.Count 
    'sets the Item(1) of the arrows collection
     myArrows.Item(1).AngularSize = 90
    'returns the AngularSize of Item(1) of the arrows collection 
     Text3.text = MyArrows.Item(1).AngularSize
 End Sub

See Also