Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw control.Geometries.

Returns the number of geometries in the geometries collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of geometries in the geometries collection.

Example

'Declares variables 
 Dim myGeometries As ChemDrawControl11Ctl.Geometries
 Set myGeometries = ctlChemDraw.Selection.Objects.Geometries

 Private Sub cmdGeometries_Click()
    'returns the number of Geometries in the Geometries collection
     Text1.text = MyGeometries.Count 
 End Sub

See Also