Software Developer's Kit - ChemDraw

Send comments on this topic
Pictures Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the pictures from the collection of objects

Property type

Read-only property

Syntax

Visual Basic
Public Property Pictures() As Pictures

Return Type

Example

'Shows Pictures   
 Private Sub cmdShowNumberOfPictures_Click() 
     Dim myPicture1 as ChemDrawControl10Ctl.Picture
     Dim myPicture2 as ChemDrawControl10Ctl.Picture 
    'Checks if at least two Pictures have been drawn
     If ctlChemDraw.Objects.Pictures.Count > 2 Then 
         Set MyPicture1 = ChemDrawControlCtl.Objects.Pictures.Item(1)
         Set MyPicture2 = ChemDrawControlCtl.Objects.Pictures.Item(2)
     End If
 End Sub

See Also