FontBold

This property returns and sets the Bold font style.

Syntax

object.FontBold [= Boolean]

Parameters

object
Object expression that evaluates to a CommonDialog or TreeView control.
Boolean
Boolean expression that specifies the font style. Following are the settings for Boolean:
True
Turns on the formatting in that style. Default for FontBold, except with the CommonDialog and TreeView controls.
False
Turns off the formatting in that style.

Remarks

Use these font properties to format text, either at design time using the Properties window or at run time using code. For Form object, setting these properties does not affect graphics or text already drawn on the control or object. For all other controls, font changes take effect on screen immediately.

To use these properties with the CommonDialog control, the Effects flag must be set.

Fonts available in the toolkit vary depending on your system configuration and display devices. Font-related properties can be set only to values for which actual fonts exist.