Software Developer's Kit - ChemDraw

Send comments on this topic
Face Property
See Also 

Description

Member of ChemDraw Control.Style.

Sets and returns the font face associated with this style.

Property type

Read-write property

Syntax

Visual Basic
Public Property Face() As CDFontStyle

Return Type

Remarks

Returns the formatting associated with this style (bold, italic, etc; as a bitmask).

Example

'Declares a variable style
 Dim vStyle As ChemDrawControl10Ctl.style 

 Private Sub cmdCommand_Click()
     Set vStyle = ctlChemDraw.Styles.Item(1)
     Text1.text = vStyle.Caption.Face 
     vStyle.Style.Face = kCDFontStyleBold 
 End Sub

See Also