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 ChemDraw Control.TLCSpots.

Given an index, returns one TLCSpot from the collection of TLCSPots

Syntax

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

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 TLCSpot in particular from the TLCSpots collection. This enables all the TLCSpot properties for the TLCSpot referenced by Item(i).

Example

'Declares variables 
 Dim myTLCSpots As ChemDrawControl11Ctl.TLCSpots
 Set myTLCSpots = ctlChemDraw.Selection.Objects.TLCSpots

 Private Sub cmdTLCSpots_Click()
    'returns the application of the TLCSpots collection
     Text1.text = MyTLCSpots.Application
    'returns the number of TLCSpots in the TLCSpots collection
     Text2.text = MyTLCSpots.Count 
    'returns the color of Item(1) of the TLCSpots collection 
     Text3.text = MyTLCSpots.Item(1).Color
 End Sub

See Also