Software Developer's Kit - ChemDraw

Send comments on this topic
Groups Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the groups from the objects in the collection

Property type

Read-only property

Syntax

Visual Basic
Public Property Groups() As Groups

Return Type

Example

'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