Software Developer's Kit - ChemDraw

Send comments on this topic
Topology Property
See Also 


Member of ChemDraw Control.Bond.

Sets and returns the topology of the bond.

Property type

Read-write property


Visual Basic
Public Property Topology() As CDBondTopology

Return Type


The topology property specifies the ring environment of the selected bond. Chain topology is the linear order of secondary structure elements in the chain. 


'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.Topology
     myBond.Topology = kCDBondTopologyChain
 End Sub

See Also