Software Developer's Kit - ChemDraw

Send comments on this topic
AlternativeGroup Property
See Also 


Member of ChemDraw Control.Atom.

Returns the AltGroup corresponding to the atom, for the named alternative groups. 

Property type

Read-only property


Visual Basic
Public Property AlternativeGroup() As AltGroup

Return Type


An AltGroup is a container object, often holding fragments that represent alternative substituents for a query.  This property returns the AltGroup to which this atom belongs.


'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

 Private Sub Command1_Click()
    'Returns the AltGroup to which the atom belongs

     vMessage = MsgBox("The AltGroup to which the atom belongs is: " & _
                MyAtom.AlternativeGroup.Caption.Text, vbInformation + vbOKOnly, "Info") 
 End Sub

See Also