Software Developer's Kit - ChemDraw

Send comments on this topic
selection Property
See Also 

Description

Member of ChemDrawCtl.

Returns the contents of the selection in the ChemDraw control.

Property type

Read-only property

Syntax

Visual Basic
Public Property selection() As selection

Return Type

Example

 Private Sub cmdSelection_Click()
    'returns the number of objects in the selection
     Text1.text = ChemDrawCtl.Selection.Objects.Count 
    'returns the bonds selected
     Text1.text = ChemDrawCtl.Selection.Objects.Bonds
 End Sub

See Also