System.Web.UI.WebControls.FontSize Enumeration

Specifies the font sizes defined by HTML 4.0.

Syntax

public enum FontSize

Remarks

The System.Web.UI.WebControls.FontSize enumeration represents the font sizes defined by HTML 4.0. The font size can be an absolute or relative size.

An absolute font size represents a predefined font size determined by the browser. The possible values for an absolute font size are FontSize.XXSmall, FontSize.XSmall, FontSize.Small, FontSize.Medium, FontSize.Large, FontSize.XLarge, and FontSize.XXLarge.

A relative font size represents a font size one size larger or smaller than a parent element's font size. The possible values for a relative font size are FontSize.Smaller and FontSize.Larger.

Note:

Some browers do not recognize FontSize.Smaller and FontSize.Larger font sizes. Check with your browser for compatibility.

Members

Member NameDescription
AsUnit

The font size is specified by a point value.

Large

The font size is two sizes larger than the base font size.

Larger

The font size is one size larger than the parent element.

Medium

The font size is one size larger than the default font size.

NotSet

The font size is not set.

Small

The base font size determined by the browser.

Smaller

The font size is one size smaller than the parent element.

XLarge

The font size is three sizes larger than the base font size.

XSmall

The font size is one size smaller than the base font size.

XXLarge

The font size is four sizes larger than the base font size.

XXSmall

The font size is two sizes smaller than the base font size.

Requirements

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