Software Developer's Kit - ChemDraw

Send comments on this topic
BondDisplay2 Property
See Also 


Member of ChemDraw Control.Bond.

Sets and returns the secondary display type for this bond.

Property type

Read-write property


Visual Basic
Public Property BondDisplay2() As CDBondDisplay

Return Type


This is an enumerated property and returns the display type for the second line of a double bond. If this property is absent then the second line of a double bond is treated as the same as the first line.


'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.BondDisplay2
     myBond.BondDisplay2 = kCDBondDisplayDash
 End Sub

See Also