Software Developer's Kit - ChemDraw

Send comments on this topic
CaptionFace Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the style used for captions.

Property type

Read-write property

Syntax

Visual Basic
Public Property CaptionFace() As Integer

Return Type

Integer

Remarks

Returns the font style of the caption (plain, script, bold, underscript, superscript or formula) as a bitmask of CDFontStyle). When Settings.CaptionFace is applied to a caption, it enables changing Caption.Face. 

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.CaptionFace 
     vObject.Settings.CaptionFace = kCDFontStyleBold 

    'Returns the value of the following: 
     Text1.Text = myObject.Settings.CaptionFace  
    'If object is a caption: 
     Text2.Text = myObject.Face
 End Sub

See Also