Software Developer's Kit - ChemDraw

Send comments on this topic
Face Property
See Also 


Member of ChemDraw Control.Caption.

Sets and returns the font face associated with this caption.

Property type

Read-write property


Visual Basic
Public Property Face() As CDFontStyle

Return Type


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. 


'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