Software Developer's Kit - ChemDraw

Send comments on this topic
Graphics Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the graphics from the objects in the collection

Property type

Read-only property

Syntax

Visual Basic
Public Property Graphics() As Graphics

Return Type

Example

'Shows Graphics   
 Private Sub cmdShowNumberOfGraphics_Click() 
     Dim myGraphic1 as ChemDrawControl10Ctl.Graphic
     Dim myGraphic2 as ChemDrawControl10Ctl.Graphic 
    'Checks if at least two Graphics have been drawn
     If ctlChemDraw.Objects.Graphics.Count > 2 Then 
         Set MyGraphic1 = ChemDrawControlCtl.Objects.Graphics.Item(1)
         Set MyGraphic2 = ChemDrawControlCtl.Objects.Graphics.Item(2)
     End If
 End Sub

See Also