Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.StoichiometryGrids.

Returns the number of StoichiometryGrids in the collection of StoichiometryGrids

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of StoichiometryGrids in the collection of StoichiometryGrids.

Example

'Declares variables 
 Dim myStoichiometryGrids As ChemDrawControl11Ctl.StoichiometryGrids
 Set myStoichiometryGrids = ctlChemDraw.Selection.Objects.StoichiometryGrids

 Private Sub cmdStoichiometryGrids_Click()
    'returns the application of the StoichiometryGrids collection
     Text1.text = MyStoichiometryGrids.Application
    'returns the number of StoichiometryGrids in the StoichiometryGrids collection
     Text2.text = MyStoichiometryGrids.Count 
    'returns the number of components of Item(1) of the StoichiometryGrids collection 
     Text3.text = myStoichiometryGrids.Item(1).Components.count
 End Sub

See Also