Software Developer's Kit - ChemDraw

Send comments on this topic
ReactionParticipation Property
See Also 

Description

Member of ChemDraw Control.Bond.

Sets and returns the reaction participation of this bond.

Property type

Read-write property

Syntax

Visual Basic
Public Property ReactionParticipation() As CDBondReactionParticipation

Return Type

Remarks

This property specifies how the selected bonds are affected in a reaction. It is only meaningful when searching a database containing chemical reactions.  If this property is absent, then the reaction participation is treated as unspecified. 

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.ReactionParticipation
     myBond.ReactionParticipation = kCDBondReactionParticipationChangeType
 End Sub

See Also