Software Developer's Kit - ChemDraw

Send comments on this topic
Charge Property
See Also 


Member of ChemDraw Control.Atom.

Sets and returns the charge of this atom

Property type

Read-write property


Visual Basic
Public Property Charge() As Double

Return Type



The atomic charge of an atom. Charges may be created as part of a textual atom label or with the appropriate tool. They are always assigned to a specific element in the atom label, whose acceptable valences become those of the similar isoelectronic neutral element.


'Declares variable vAtom
 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

 Private Sub cmdCharge_Click() 
     myAtom.Charge = 5 
     Text1.text = myAtom.Charge 
 End Sub

See Also