Software Developer's Kit - ChemDraw

Send comments on this topic
Lanes Property
See Also 

Description

Member of ChemDraw Control.TLCPlate.

Returns the lanes collection from this TLCPlate.

Property type

Read-only property

Syntax

Visual Basic
Public Property Lanes() As TLCLanes

Return Type

Remarks

This property returns the lanes collection contained within this TLCPlate. The properties associated with the collection are the following:

myTLCPlate.Lanes.Application      returns the application associated with the collection of lanes 
myTLCPlate.Lanes.Count             returns the number of lanes that are in this TLCPlate
myTLCPlate.Lanes.Item(i)           returns one atom from the collection of lanes
myTLCPlate.Lanes.Parent            returns the parent of the collection of lanes

With myTLCPlate.Lanes.Item(i) all lane properties are enabled for TLCPlate.Lanes item (1). This index starts with 1.

Example

'Example of TLCPlate.Lanes
 Private Sub cmdLanes_Click()
     Label1.Caption = myTLCPlate.Lanes.Count
 End Sub

'Example of TLCPlate.Lanes used as an argument
 Private Sub cmdAddLane_Click()
     Dim MyTLCspot As TLCSpot
     Dim MyTLCLane As TLCLane
     myTLCPlate.AddLane MyLane
     myTLCPlate.Lanes(myTLCPlate.Lanes.Count).AddSpot MyTLCspot
     MyTLCspot.Rf = 0.5
     MyTLCspot.Color = vbGreen
 End Sub

See Also