Software Developer's Kit - ChemDraw

Send comments on this topic
Face Property
See Also 

Description

Member of ChemDraw Control.Caption.

Sets and returns the font face associated with this caption.

Property type

Read-write property

Syntax

Visual Basic
Public Property Face() As CDFontStyle

Return Type

Remarks

Returns the font style of the caption (plain, script, bold, underscript, superscript or formula). Another way to set the caption face of a caption is to use Caption.Settings.CaptionFace. 

Example

'Declares a variable caption
 Dim myCaption As ChemDrawControl10Ctl.Caption

'This example sets and reads caption face
 Private Sub cmdCommand_Click()
     Set myCaption = ctlChemDraw.Captions.Item(1)
     myCaption.Face = kCDFontStyleBold 
     'another way to set it is:  
     myCaption.Settings.CaptionFace = 2 
     Text1.text = myCaption.Face 
 End Sub

See Also