Software Developer's Kit - ChemDraw

Send comments on this topic
RestrictReactionChange Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns whether this atom has a reaction change restriction or not.

Property type

Read-write property

Syntax

Visual Basic
Public Property RestrictReactionChange() As Boolean

Return Type

Boolean

Remarks

The RestricReactionChange property specifies whether a change occurs at selected atoms after a reaction.  This property is only meaningful when searching a database containing chemical reactions. RestrictReactionChange = True finds all the reactions that are changed at the selected atoms exactly as specified by the reaction center property in the Atom Properties dialog box. RestrictReactionChange = False, default, finds all the reactions regardless of any change to selected atoms after reaction.

Example

'Declares variables
 Dim vAtom  As ChemDrawControl10Ctl.Atom 
'Checks that there is an atom loaded in the variable
 If  Selection.Atoms.Count < 1 Then
     Exit Sub
 End If

'Checks True/False with this property 
 If  vAtom.RestrictReactionChange = True then
         Text1.Text = "Atom is RestrictReactionChange"
     Else
         Text1.Text = "Atom is not RestrictReactionChange"
     End If
 End Sub 

See Also