Software Developer's Kit - ChemDraw

Send comments on this topic
Groups Property
See Also 


Member of ChemDrawControl.Objects.

Returns the groups from the objects in the collection

Property type

Read-only property


Visual Basic
Public Property Groups() As Groups

Return Type


'Shows Groups   
 Private Sub cmdShowNumberOfGroups_Click() 
     Dim myGroup1 as ChemDrawControl10Ctl.Group
     Dim myGroup2 as ChemDrawControl10Ctl.Group 
    'Checks if at least two Groups have been drawn
     If ctlChemDraw.Objects.Groups.Count > 2 Then 
         Set MyGroup1 = ChemDrawControlCtl.Objects.Groups.Item(1)
         Set MyGroup2 = ChemDrawControlCtl.Objects.Groups.Item(2)
     End If
 End Sub

See Also