Software Developer's Kit - ChemDraw

Send comments on this topic
Spots Property
See Also 


Member of ChemDrawControl.TLCLane.

The property Spots returns the spots collection of this TLCLane

Property type

Read-only property


Visual Basic
Public Property Spots() As TLCSpots

Return Type


Spots is a collection containing all of the TLCSpots objects in this TLCLane. 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. 



'Example of TLCPlate.AddLane
 Private Sub cmdTLCLaneSpots_Click()
     Dim MyTLCSpot As TLCSpot
     Dim MyTLCLane As TLCLane
     myTLCPlate.AddLane MyTLCLane
     myTLCPlate.Lanes(myTLCPlate.Lanes.Count).AddSpot MyTLCspot
     MyTLCSpot.Rf = 0.5  
     'assigns a TLCSpot property to a particular spot 
     myTLCPlate.Lanes.Item(1).Spots.Item(1).Color = vbGreen
 End Sub

See Also