Software Developer's Kit - ChemDraw

Send comments on this topic
StoichiometryGrids Collection
See Also  Members 

Description

Member of ChemDraw Control.

For a list of all members defined for this collection, see StoichiometryGrids Members.

ChemDraw StoichiometryGrids Collection contains all of the StoichiometryGrid objects in the document. 

Object Model

Remarks

StoichiometryGrids is a collection containing all of the StoichiometryGrid objects in the ChemDraw document. If myStoichiometryGrids is a StoichiometryGrids collection object:

MyStoichiometryGrids.Application    returns the application associated with the StoichiometryGrids collection
MyStoichiometryGrids.Count           returns the number of StoichiometryGrids  in the collection
MyStoichiometryGrids.Item(i)         given an index, references one StoichiometryGrid in particular
MyStoichiometryGrids.Parent          returns the parent of the StoichiometryGrids collection

Using myStoichiometryGrids.Item(i) all the StoichiometryGrid properties are enabled for myStoichiometryGrids(i). This index starts with 1.

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