Software Developer's Kit - ChemDraw

Send comments on this topic
MakeBracket Method
See Also 
type

Description

Member of ChemDraw Control.Cell.

Creates a new bracket in this cell

Syntax

Visual Basic
Public Function MakeBracket( _
   ByVal type As CDBracketType _
) As Bracket

Parameters

type
ValueDescription
kCDBracketTypeSquare[ ] brackets
kCDBracketTypeCurly{ } braces
kCDBracketTypeRound( ) parentheses

Return Type

Example

'Declares variables
 Dim myTable As ChemDrawControl11Ctl.Table
 Set myCell = ctlChemDraw.Selection.Objects.Cell

 Private Sub cmdCommand_Click()
    'Checks that there is a Table loaded in the variable
     If  Selection.Tables.Count < 1 Then
         Exit Sub
     End If
     Set myCell = myTable.Cells.Item(1)
    'creates an object within the cell
     
Set MyBracket = myCell.MakeBracket kCDBracketTypeCurly
     myBracket.selected = True
 End Sub

See Also