Software Developer's Kit - ChemDraw

Send comments on this topic
LabelDisplay Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns the label display type of the atom

Property type

Read-write property

Syntax

Visual Basic
Public Property LabelDisplay() As CDLabelDisplay

Return Type

Remarks

The atom label text identifies atoms and substructures by their chemical symbols and formulas. This is an enumerated property which indicates if the atom label will be left-aligned, centered, right-aligned, stacked above, stacked below, or aligned automatically. 

Example

'Declares variables
 Dim myAtom As ChemDrawControl10Ctl.Atom
'Checks that there is an atom loaded in the variable
 If  Selection.Atoms.Count < 1 Then
     Exit Sub
 End If

'Reads and sets this property
 Private Sub cmdLabelDisplay_Click() 
     myAtom.LabelDisplay = val(text1.text) 
     Text2.text = myAtom.LabelDisplay  
 End Sub

See Also