Software Developer's Kit - ChemDraw

Send comments on this topic
DataObject Property
See Also 

Description

Member of ChemDraw Control.selection

Returns the DataObject that is selected

Property type

Read-only property

Syntax

Visual Basic
Public Property DataObject() As DataObject

Return Type

Remarks

Returns the DataObject in the selection.

Example

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

See Also