Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.Symbols

Returns the number of symbols in the symbols collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of symbols in the collection of symbols.

Example

'Declares variables 
 Dim mySymbols As ChemDrawControl11Ctl.Symbols
 Set mySymbols = ctlChemDraw.Selection.Objects.Symbols

 Private Sub cmdSymbols_Click()
    'returns the application of the Symbols collection
     Text1.text = MySymbols.Application
    'returns the number of Symbols in the Symbols collection
     Text2.text = MySymbols.Count 
 End Sub

See Also