Software Developer's Kit - ChemDraw

Send comments on this topic
Item Method
See Also 
index

The location of an object in a collection, counted from the top, starting with 1.

Description

Default member of ChemDraw Control.Arrows.

Given an index, returns one arrow from the collection of arrows.

Syntax

Visual Basic
Public Function Item( _
   ByVal index As Long _
) As Arrow

Parameters

index

The location of an object in a collection, counted from the top, starting with 1.

Return Type

Remarks

Working with this property allows referencing any given arrow of a collection of arrows, and all the arrow properties are available.

MyArrows.Item(i).AngularSize             returns or sets the angular size of one arrow in the collection
MyArrows.Item(i).ArrowHeadType       returns or sets the color of one arrow in the collection

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