System.Web.UI.WebControls.FontInfo Class

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

See Also: FontInfo Members


public sealed class FontInfo


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.


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


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