Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.TLCSpots.

Returns the number of TLCSpots in a collection of TLCSpots

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of TLCSpots in a collection of TLCSpots.

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