Software Developer's Kit - ChemDraw

Send comments on this topic
LabelJustification Property
See Also 


Member of ChemDraw Control.Settings

Sets and returns the justification used for atom labels

Property type

Read-write property


Visual Basic
Public Property LabelJustification() As CDJustification

Return Type


This property refers to the font used for the atom labels. It returns the justification (flush left, centered, flush right, stacked above and automatic). See also Caption.Justification.


'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.LabelJustification
     vObject.Settings.LabelJustification = kCDJustificationLeft 

    'Displays settings 
     Text2.text = vObject.Settings.LabelJustification   
    'If object is a caption: 
     Text3.text = vObject.Justification
 End Sub

See Also