Software Developer's Kit - ChemDraw

Send comments on this topic
Graphics Property
See Also 

Description

Member of ChemDraw Control.selection

Returns the graphics that are selected

Property type

Read-only property

Syntax

Visual Basic
Public Property Graphics() As Graphics

Return Type

Remarks

Returns the graphics collection in the selection.

Example

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

See Also