Software Developer's Kit - ChemDraw

Send comments on this topic
IsCharge Property
See Also 

Description

Member of ChemDraw Control.Caption.

Returns if this caption indicates a charge or not.

Property type

Read-only property

Syntax

Visual Basic
Public Property IsCharge() As Boolean

Return Type

Boolean

Remarks

This property returns True if the caption indicates a charge. Otherwise, returns False.

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.IsCharge 
     'Checks if this property if True or False 
     If  myCaption.IsCharge = True then
         Text1.Text = "This caption indicates a charge"
     Else
         Text1.Text = "This caption does not indicate a charge"
     End If
 End Sub 

See Also