Visual Basic Reference

Underline Property

See Also    Example    Applies To

Returns or sets the font style of the Font object to either underlined or nonunderlined.

Syntax

object**.Underline** [= boolean]

The Underline property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
boolean A Boolean expression specifying the font style, as described in Settings.

Settings

The settings for boolean are:

Setting Description
True Turns on underline formatting.
False (Default) Turns off underline formatting.

Remarks

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