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.Splines

Given an index, returns one spline from the splines collection.

Syntax

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

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 spline of a collection of splines, and all the spline properties are available.

MySplines.Item(i).DelocalizedBonds:   returns the delocalized bonds associated to the spline collection
MySplines.Item(i).LineType:               returns or sets the type of line.

Example

'Declares variables 
 Dim mySplines As ChemDrawControl11Ctl.Splines
 Set mySplines = ctlChemDraw.Selection.Objects.Splines

 Private Sub cmdSplines_Click()
    'returns the application of the Splines collection
     Text1.text = MySplines.Application
    'returns the number of Splines in the Splines collection
     Text2.text = MySplines.Count 
    'sets the Item(1) of the Splines collection 
     mySplines.Item(1).HeadSize = 12
    'returns arrow head type of Item(1)of the Splines collection 
     Text3.text = MySplines.Item(1).ArrowHeadType
 End Sub

See Also