Software Developer's Kit - ChemDraw

Send comments on this topic
Brackets Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the brackets from the objects in the collection

Property type

Read-only property

Syntax

Visual Basic
Public Property Brackets() As Brackets

Return Type

Example

'Shows Brackets   
 Private Sub cmdShowNumberOfBrackets_Click() 
     Dim myBracket1 as ChemDrawControl10Ctl.Bracket
     Dim myBracket2 as ChemDrawControl10Ctl.Bracket 
    'Checks if at least two Brackets have been drawn
     If ctlChemDraw.Objects.Brackets.Count > 2 Then 
         Set MyBracket1 = ChemDrawControlCtl.Objects.Brackets.Item(1)
         Set MyBracket2 = ChemDrawControlCtl.Objects.Brackets.Item(2)
     End If
 End Sub

See Also