System.Web.UI.WebControls.FontInfo.Underline Property

Gets or sets a value that indicates whether the font is underlined.

Syntax

[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.DefaultValue(false)]
public bool Underline { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the FontInfo.Underline property to specify or determine whether the font contains a line under the text.

The value of this property is stored in view state.

Note:

The font underline behavior for links generated by the System.Web.UI.WebControls.LinkButton, System.Web.UI.WebControls.HyperLink, and System.Web.UI.HtmlControls.HtmlAnchor controls is affected by setting the FontInfo.Strikeout and the FontInfo.Overline properties of the System.Web.UI.WebControls.FontInfo for the control. If the FontInfo.Strikeout or the FontInfo.Overline properties are set, regardless of their value, you must set the FontInfo.Underline property explicitly if you want the link to be underlined.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0