Software Developer's Kit - ChemDraw

Send comments on this topic
Start Property
See Also 


Member of ChemDraw Control.Bracket.

Sets and returns the start-position of this bracket.

Property type

Read-write property


Visual Basic
Public Property Start() As Point

Return Type


This property sets and returns a point, with its coordinates, as the starting point of a bracket.


'Declares variables
 Dim vbracket1 As ChemDrawControl10Ctl.bracket
 Dim vbracket2 As ChemDrawControl10Ctl.bracket 
'Checks that there is a bracket loaded in the variable
 Private Sub ctlChemDraw_SelectionChanged(ByVal selection _ 
         As ChemDrawControl10Ctl.IChemDrawSelection) 
     If  Selection.brackets.Count < 1 OR Selection.Brackets.Count > 2 Then
         Exit Sub
Selection.Brackets.Count = 1 Then
             Set vbracket1 =  ctlChemDraw.Selection.Objects.Brackets.Item(1)
vbracket1 =  ctlChemDraw.Selection.Objects.Brackets.Item(1)
             Set vbracket2 =  ctlChemDraw.Selection.Objects.Brackets.Item(2)
         End If
     End If
 End Sub 

 Private Sub cmdStart_click()
'Reads the X & Y coordinates of the bracket´s start point 
     Text1.text = vbracket1.start.X
     Text2.text = vbracket1.start.Y
    'Example to ASSIGN values to the X & Y coordinates of the bracket´s start point 
     Dim myPoint As ChemDrawControl10Ctl.Point
     Set myPoint = vbracket1.start
     myPoint.X = 350
     myPoint.Y = 150
     vbracket1.start = myPoint
     Label1.Caption = "start" + chr$(13) + _
            Format(vbracket1.start.X, "0.0") + " start X" + Chr$(13) + _
            Format(vbracket1.start.Y, "0.0") + " start Y" + Chr$(13)
 End Sub

See Also