Software Developer's Kit - ChemDraw

Send comments on this topic
LabelFont Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the name of the font used for atom labels

Property type

Read-write property

Syntax

Visual Basic
Public Property LabelFont() As String

Return Type

String

Remarks

This property refers to the font used for the atom labels. It returns the font used for atom labels. See also Caption.Family.

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.LabelFont
     vObject.Settings.LabelFont = "Courier New" 

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

See Also