Software Developer's Kit - ChemDraw

Send comments on this topic
ShowNonTerminalCarbonLabels Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns whether non-terminal carbons (carbons with more than one bond) should display a text label with the element symbol and appropriate hydrogens

Property type

Read-write property

Syntax

Visual Basic
Public Property ShowNonTerminalCarbonLabels() As Boolean

Return Type

Boolean

Remarks

A value of 0 indicates that this property is ticked as chosen

A value of -1 indicates that this property is not ticked

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.ShowNonTerminalCarbonLabels
     vObject.Settings.ShowAtomNonTerminalCarbonLabels = Text1.text 

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

See Also