Underline

This property returns and sets the font style of the Font object to either underlined or non-underlined.

Syntax

object.Underline [= Boolean]

Parameters

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

Remarks

The Font object is not directly available at design time. Instead, set the Underline property by selecting a control's Font property in the Properties window and choosing the Properties button. In the Font dialog box, select the Underline check box. At run time, however, set Underline directly by specifying its setting for the Font object.