Software Developer's Kit - ChemDraw

Send comments on this topic
Symbols Collection
See Also  Members 


Member of ChemDraw Control.

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

ChemDraw Symbols Collection contains all of the symbol objects in the document.  

Object Model


Symbols is a collection containing all of the symbol objects in the ChemDraw document. If mySymbols is a symbols collection object:

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

With MySymbols.Item(i) all the symbol properties are enabled for symbol(i) of the symbol collection.  This index starts with 1. 


'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 
    'sets the Item(1) of the Symbols collection 
     mySymbols.Item(1).SymbolType = 4
    'returns element number of Item(1)of the Symbols collection 
     Text3.text = MySymbols.Item(1).SymbolType
 End Sub

See Also