Software Developer's Kit - ChemDraw

Send comments on this topic
BondDoublePosition Property
See Also 


Member of ChemDraw Control.Bond.

Sets and returns the double bond position for this bond.

Property type

Read-write property


Visual Basic
Public Property BondDoublePosition() As CDBondDoublePosition

Return Type


This is an enumerated property which sets and returns the position of the second line of a double bond. The default value indicates a normal (two solid lines) double bond. 


'In the form general section (or as public in the module)
 Dim myBond As ChemDrawControl10Ctl.Bond
 Private Sub ctlChemDraw_SelectionChanged(ByVal selection As _ 
    'Checks that there is a bond loaded in the variable 
     If  Selection.Bonds.Count < 1 Then 
         Exit Sub
     End If
 End Sub
 Private Sub Command1_Click()
     Text1.Text= myBond.BondDoublePosition
     myBond.BondDoublePosition = kCDBondDoublePositionAutoRight
 End Sub

See Also