Software Developer's Kit - ChemDraw

Send comments on this topic
Brackets Collection
See Also  Members 


Member of ChemDraw Control.

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

ChemDraw Brackets Collection contains all of the bracket objects in the document .

Object Model


Brackets is the collection of bracket objects in the ChemDraw document. If myBrackets is a bracket collection object:

MyBracket.Application  returns the application associated with the bracket collection
MyBracket.Count          returns the number of brackets in the collection
MyBracket.Item(i)        given an index, references one bracket in particular, enabling all the bracket properties
MyBracket.Parent         returns the parent of the brackets collection

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


'Declares variables  
 Dim myBrackets As ChemDrawControl11Ctl.Brackets
myBrackets = ctlChemDraw.Selection.Objects.Brackets
 Private Sub cmdbracketsItem_Click()
    'returns the application of the brackets collection
     Text1.text = MyBrackets.Application
    'returns the number of brackets in the brackets collection
     Text2.text = MyBrackets.Count
    'sets the Item(1) of the brackets collection 
     myBracket.Item(1).BracketType = 2
    'returns element number of Item(1)of the brackets collection
     Text3.text = MyBrackets.Item(1).SRULabel
 End Sub

See Also