Software Developer's Kit - ChemDraw

Send comments on this topic
Stereochemistry Property
See Also 

Description

Member of ChemDraw Control.Bond.

Sets and returns the absolute stereochemistry of the bond.

Property type

Read-write property

Syntax

Visual Basic
Public Property Stereochemistry() As CDBondCIPType

Return Type

Remarks

This is an enumerated property.  It sets and returns the absolute stereochemistry of the bond present in the ChemDraw application. If this property is absent then the bond is treated as having undetermined stereochemistry. 

Example

'In the form general section (or as public in the module)
 Dim myBond As ChemDrawControl10Ctl.Bond
'---------------------------------------------------------------------------------
 Private Sub ctlChemDraw_SelectionChanged(ByVal selection As _ 
         ChemDrawControl10Ctl.IChemDrawSelection)   
    '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.Stereochemistry
     myBond.Stereochemistry = kCDCIPBondE
 End Sub

See Also