FontUnit.Parse Method (String)
Assembly: System.Web (in system.web.dll)
public static FontUnit Parse ( String s )
public static function Parse ( s : String ) : FontUnit
Parameters
- s
A string representation of one of the FontSize values.
Return Value
A FontUnit that represents the font size specified by the s parameter.Use the static Parse method to convert the specified string to its FontUnit equivalent.
If the value of the s parmeter is not a null reference (Nothing in Visual Basic), not String.Empty, and a valid FontSize value, the following table shows initial property values for the new instance of FontUnit.
| Property | Initial Value |
|---|---|
| Type | The FontSize enumeration equivalent of the s parameter. |
| Unit |
If the value of the s parmeter is not a null reference (Nothing in Visual Basic), not String.Empty, and an invalid FontSize value, the following table shows initial property values for the new instance of FontUnit.
| Property | Initial Value |
|---|---|
| Type | FontSize.AsUnit |
| Unit | A Unit object with its Value property initialized with the s parameter in the current thread's culture. |
If the value of the s parmeter is a null reference (Nothing in Visual Basic) or String.Empty, the following table shows initial property values for the new instance of FontUnit.
| Property | Initial Value |
|---|---|
| Type | FontSize.NotSet |
| Unit | Empty |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.