
856
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.ValueType ➝ System.Enum(System.IComparable, System.IFor-
mattable, System.IConvertible)
➝ FontSize
Returned By
FontUnit.Type
Passed To
FontUnit.FontUnit( )
FontUnit
System.Web.UI.WebControls (system.web.dll)
struct
This class represents the size of a font and is used by the FontInfo.Size property. The size
of the font can be specified in two ways. You can use the Type property, which uses one
of the HTML 4.0 standard font size specifications (which are duplicated as static read-
only fields in this class) or the Unit property, which uses a Unit structure that can specify
an exact point size.
public struct FontUnit {
// Public Constructors
public FontUnit( FontSize type);
public FontUnit( int value);
public FontUnit( string value);
public FontUnit(string value, System.Globalization.CultureInfo culture);
public FontUnit( Unit value);
// Public Static Fields
public static readonly FontUnit Empty;
public static readonly FontUnit Large; // =Large
public static readonly FontUnit Larger; // =Larger
public static readonly FontUnit Medium; // =Medium
public static readonly FontUnit Small; // =Small
public static readonly FontUnit Smaller; // =Smaller
public static readonly FontUnit XLarge; // =X-Large
public ...