Software Developer's Kit - ChemDraw

Send comments on this topic
UsedValences Property
See Also 

Description

Member of ChemDraw Control.Atom.

Returns the used valences on this atom.

Property type

Read-only property

Syntax

Visual Basic
Public Property UsedValences() As Long

Return Type

Long

Remarks

Indicates the number of valences that are used.

Example

'Declares variables
 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

'Once an atom is loaded in a variable, any atom property can be applied
 Private Sub cmdLoad_Click() 
     Text1.Text = vAtom.UsedValences
 End Sub

See Also