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

Member of ChemDrawControl.TLCLanes.

Given an index, returns one TLCLane from the 8TLCLanes collection.

Syntax

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

Parameters

index

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

Return Type

Remarks

The property Item, followed by an index allows referencing one TLCLane in particular from the TLCLanes collection. This enables all the TLCLane properties for the TLCLane referenced by Item(i).

Example

'Declares variables 
 Dim myTLCLanes As ChemDrawControl11Ctl.TLCLanes
 Set myTLCLanes = ctlChemDraw.Selection.Objects.TLCLanes

 Private Sub cmdTLCLanes_Click()
    'returns the application of the TLCLanes collection
     Text1.text = MyTLCLanes.Application
    'returns the number of TLCLanes in the TLCLanes collection
     Text2.text = MyTLCLanes.Count 
    'returns spots of Item(1) of the TLCLanes collection 
     Text3.text = MyTLCLanes.Item(1).Spots
 End Sub

See Also