Software Developer's Kit - ChemDraw

Send comments on this topic
PictureType Property
See Also 

Description

Member of ChemDraw Control.ObjectTag.

Returns the type of the picture.

Property type

Read-only property

Syntax

Visual Basic
Public Property PictureType() As CDPictureType

Return Type

Example

'Declares variable  
 Dim myPicture As ChemDrawControl10Ctl.Picture
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Pictures.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdPictureType_click()
    'Returns the picture type
     Text1.text = myPicture.PictureType
 End Sub

See Also