Software Developer's Kit - ChemDraw

Send comments on this topic
StoichiometryGrids Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the stoichiometry grids from the objects in the collection

Property type

Read-only property

Syntax

Visual Basic
Public Property StoichiometryGrids() As StoichiometryGrids

Return Type

Example

'Shows StoichiometryGrids   
 Private Sub cmdShowNumberOfStoichiometryGrids_Click() 
     Dim myStoichiometryGrid1 as ChemDrawControl10Ctl.StoichiometryGrid
     Dim myStoichiometryGrid2 as ChemDrawControl10Ctl.StoichiometryGrid 
    'Checks if at least two StoichiometryGrids have been drawn
     If ctlChemDraw.Objects.StoichiometryGrids.Count > 2 Then 
         Set MyStoichiometryGrid1 = ChemDrawControlCtl.Objects.StoichiometryGrids.Item(1)
         Set MyStoichiometryGrid2 = ChemDrawControlCtl.Objects.StoichiometryGrids.Item(2)
     End If
 End Sub

See Also