Software Developer's Kit - ChemDraw

Send comments on this topic
Unsaturation Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns the unsaturation restriction on this atom

Property type

Read-write property

Syntax

Visual Basic
Public Property Unsaturation() As CDUnsaturation

Return Type

Remarks

The unsaturation property specifies whether a multiple bond is attached to the selected atoms. 

Example

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

'Reads and sets this property
 Private Sub cmdUnsaturation_Click() 
      myAtom.Unsaturation = val(text1.text) 
      Text2.text = myAtom.Unsaturation  
 End Sub

See Also