Software Developer's Kit - ChemDraw

Send comments on this topic
NumImplicitHydrogens Property
See Also 


Member of ChemDraw Control.Atom.

Sets and returns the number of implicit hydrogens on this atom.

Property type

Read-write property


Visual Basic
Public Property NumImplicitHydrogens() As Long

Return Type



The Implicit Hydrogens property specifies whether additional, implicit hydrogen atoms may be attached to the selected atoms.  If implicit hydrogen atoms are not allowed, all valences to that atom must be filled by bonds to non-hydrogen atoms.


'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 cmdNumImplicitHydrogens_Click() 
     myAtom.NumImplicitHydrogens = val(text1.text) 
     Text2.text = myAtom.NumImplicitHydrogens  
 End Sub

See Also