Software Developer's Kit - ChemDraw

Send comments on this topic
InterpretChemically Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns whether text objects should be interpreted as chemically-meaningful where possible

Property type

Read-write property

Syntax

Visual Basic
Public Property InterpretChemically() As Boolean

Return Type

Boolean

Remarks

This property can be True or False. If True, the text object should be interpreted to be chemically meaningful. If it is False, the text object will be disregarded.

This property is set by ticking the corresponding box under the menu for captions:

right button mouse --> "objects" -- "object settings" --> "captions"

Example

'Declares variable vObject
 Dim vObject As ChemDrawControl10Ctl.Object
'Checks that there is an Object loaded the variable
 If  Selection.Object.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdSettings_click() 
   'Sets the Settings.InterpretChemically
    vObject.Settings.InterpretChemically = Text1.text 

   'Displays all the settings
    Label1.Caption = “Settings Display” + chr$(13) + _ 
                      vObject.Settings.InterpretChemically 
 End Sub

See Also