Software Developer's Kit - ChemDraw

Send comments on this topic
TLCSpots Collection
See Also  Members 


Member of ChemDraw Control.

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

ChemDraw TLCSpots Collection contains all of the TLCSpot objects in the document.

Object Model


TLCSpots is a collection containing all of the TLCSpots objects in the ChemDraw document. If myTLCSpots is a TLCSpots collection object:

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

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


'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