Software Developer's Kit - ChemDraw

Send comments on this topic
LabelSize Property
See Also 


Member of ChemDraw Control.Settings

Sets and returns the font size of atom labels

Property type

Read-write property


Visual Basic
Public Property LabelSize() As Double

Return Type



This property refers to the font used for the atom labels. The value for label size is expressed in points. See also Caption.Size.


'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.LabelSize 
     vObject.Settings.LabelSize = Text1.text 

    'Displays the settings 
     Text2.text = vObject.Settings.LabelSize   
    'If object is a caption: 
     Text3.text = vObject.Size
 End Sub

See Also