Software Developer's Kit - ChemDraw

Send comments on this topic
Groups Property
See Also 

Description

Member of ChemDraw Control.selection

Returns the groups that are selected

Property type

Read-only property

Syntax

Visual Basic
Public Property Groups() As Groups

Return Type

Remarks

Returns the groups collection in the selection.

Example

'Uses an object from the selection  
 Private Sub 
cmdCommand_Click()
     If  Selection.Groups.Count < 1 Then
         Exit Sub
     End If    
     Set myGroup = selection.Groups.Item(1)
 End Sub 

See Also