Software Developer's Kit - ChemDraw

Send comments on this topic
UnusedValences Property
See Also 

Description

Member of ChemDraw Control.Atom.

Returns the unused valences on this atom.

Property type

Read-only property

Syntax

Visual Basic
Public Property UnusedValences() As Long

Return Type

Long

Remarks

Indicates the number of valences that are not used.

Example

'Declares a variable vAtom as an atom class
 Dim vAtom  As ChemDrawControl10Ctl.Atom 
 Private Sub ctlChemDraw_SelectionChanged(ByVal selection As _

     ChemDrawControl10Ctl.IChemDrawSelection)
    'Checks that there is an atom loaded in the variable
     If  Selection.Atoms.Count < 1 Then
         Exit Sub
     End If
 End Sub

'Unused Valences
 Private Sub cmdLoad_Click()
     Text1.Text = vAtom.UnUsedValences  

 End Sub

See Also