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 static readonly FontUnit XSmall; // =X-Small
public static readonly FontUnit XXLarge; // =XX-Large
public static readonly FontUnit XXSmall; // =XX-Small
// Public Instance Properties
public bool IsEmpty{get; }
public FontSize Type{get; }
public Unit Unit{get; }
// Public Static Methods
public static FontUnit Parse(string s);
public static FontUnit Parse(string s, System.Globalization.CultureInfo culture);
public static FontUnit Point(int n);
public static bool operator !=(FontUnit left, FontUnit right);
public static bool operator = =(FontUnit left, FontUnit right);
public static implicit operator FontUnit(int n);
// Public Instance Methods
public override bool Equals(object obj); // overrides ValueType
public override int GetHashCode( ); // overrides ValueType
public override string ToString( ); // overrides ValueType
public string ToString(System.Globalization.CultureInfo culture);
}