FontUnit Constructor (String, CultureInfo)
Initializes a new instance of the FontUnit class with the specified string using the specified System.Globalization::CultureInfo object.
Assembly: System.Web (in System.Web.dll)
Parameters
- value
- Type: System::String
A string to specify the font size.
- culture
- Type: System.Globalization::CultureInfo
A CultureInfo used to make string comparisons.
The FontUnit constructor recognizes the strings for value that are shown in the following table to create a new instance of the FontUnit class.
String value | |
|---|---|
xx-small, xxsmall | |
x-small, xsmall | |
x-large, xlarge | |
xx-large, xxlarge | |
small | |
smaller | |
large | |
larger | |
medium |
In all cases, the Type property has the value NotSet. The string comparison is case insensitive.
For all other values of value, a new instance of the FontUnit class is created by treating value as a font size and setting the Type property to Point.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.