Software Developer's Kit - ChemDraw

Send comments on this topic
IsEmpty Property
See Also 

Description

Member of ChemDraw Control.Caption.

Returns if this caption is empty or not.

Property type

Read-only property

Syntax

Visual Basic
Public Property IsEmpty() As Boolean

Return Type

Boolean

Example

'Declares a variable Caption
 Dim myCaption As ChemDrawControl10Ctl.Caption 

'This example reads data from a caption 
 Private Sub cmdCommand_Click()
     Set myCaption = ctlChemDraw.Captions.Item(1)
     Text1.text = myCaption.IsEmpty 
    'Checks if this property if True or False 
     If  myCaption.IsEmpty = True then
         Text1.Text = "This caption is empty"
     Else
         Text1.Text = "This caption is not empty"
     End If
 End Sub 

See Also