FontUnderline

This property returns and sets the Underline font style.

Syntax

object.FontUnderline [= Boolean]

Parameters

object
Object expression that evaluates to a control or Form object.
Boolean
Boolean expression that specifies the font style. Following are the settings for Boolean:
True
Turns on the formatting in that style
False
Turns off the formatting in that style (default)

Remarks

Use the FontUnderline property to format text, either at design time using the Properties window or at run time using code. For Form object, setting this property 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 this property with the CommonDialog control, the Effects flag must be set.

Available fonts vary depending on your system configuration, display devices, and printing devices. Font-related properties can be set only to values for which actual fonts exist.