Software Developer's Kit - ChemDraw

Send comments on this topic
ImplicitHydrogensAllowed Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns whether implicit hydrogens are allowed on the atom.

Property type

Read-write property

Syntax

Visual Basic
Public Property ImplicitHydrogensAllowed() As Boolean

Return Type

Boolean

Remarks

The ImplicitHydrogensAllowed 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.

This property is used when making queries.  If implicit hydrogens are not allowed, the atom may not match a target atom that has any attached hydrogens.

  • True: Allowed (default). Finds compounds regardless of whether hydrogen atoms are attached to the selected atoms.
  • False: Not allowed. Finds compounds with no additional hydrogen atoms 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

'Checks if True/False this property
 Private sub cmdImplicitHydrogensAllowed_click()
 If  myAtom.ImplicitHydrogensAllowed = True Then
         Text1.Text = "Atom is ImplicitHydrogensAllowed"
     Else
         Text1.Text = "Atom is not ImplicitHydrogensAllowed"
     End If
 End Sub 

See Also