Software Developer's Kit - ChemDraw

Send comments on this topic
Arrows Collection
See Also  Members 


Member of ChemDraw Control.

For a list of all members defined for this collection, see Arrows Members.

ChemDraw Arrows Collection contains all of the arrow objects in the document.

Object Model


Arrows is a collection containing all of the arrow objects in the ChemDraw document. If myArrows is an arrows collection object:

MyArrows.Application  returns the application associated with the arrows
MyArrows.Count          returns the number of  arrows in the collection
MyArrows.Item(i)        given an index(i), references one arrow in particular, enabling all the arrow properties
MyArrows.Parent         returns the parent of the arrows collection

Using myArrows.Item(i) all the Arrows properties are enabled for myArrows(i). This index starts with 1.


'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