System.Web.UI.WebControls.FontInfo Class

Encapsulates the font properties of text. This class cannot be inherited.

See Also: FontInfo Members

Syntax

[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public sealed class FontInfo

Remarks

Use the System.Web.UI.WebControls.FontInfo class to encapsulate the font properties of text. You can specify the font name and font size. You can also specify whether the style of the font is bold, italic, overlined, strikethrough, or underlined.

This class is commonly used in a property for a class that requires font information, such as the WebControl.Font property of the System.Web.UI.WebControls.WebControl class.

Note:

This class does not have a public constructor. A new instance of the class cannot be created directly.

Requirements

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