FontUnit::Parse Method (String^)
Converts the specified string to its FontUnit equivalent.
Assembly: System.Web (in System.Web.dll)
Parameters
- s
-
Type:
System::String^
A string representation of one of the FontSize values.
Return Value
Type: System.Web.UI.WebControls::FontUnitA 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 parameter is not null, 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 parameter is not null, 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 parameter is null or String::Empty, the following table shows initial property values for the new instance of FontUnit.
Property | Initial Value |
|---|---|
Type | FontSize.NotSet |
Unit |
Available since 1.1