Software Developer's Kit - ChemDraw

Send comments on this topic
CaptionFont Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the name of the font used for captions

Property type

Read-write property

Syntax

Visual Basic
Public Property CaptionFont() As String

Return Type

String

Remarks

Returns the font used. This applies to captions. See 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.CaptionFont -- Object is a Caption
     vObject.Settings.CaptionFont = "Courier New" 

    'Displays the settings
     Text1.Text = vObject.Settings.CaptionFont 
    'If object is a caption: 
     Text2.Text = vObject.Family 
 End Sub

See Also