Converts an object to a System.Web.UI.WebControls.FontUnit in a specific culture.
- context
- An System.ComponentModel.ITypeDescriptorContext implemented object that provides information about the context of a type converter.
- culture
- A System.Globalization.CultureInfo that specifies the culture to represent the System.Web.UI.WebControls.FontUnit, when it is expressed in points.
- value
- The object to convert to a System.Web.UI.WebControls.FontUnit.
A object that represents the converted value.
Use the FontUnitConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method to convert the object specified by the value parameter to a System.Web.UI.WebControls.FontUnit in the culture specified by the culture parameter.
If the specified object is null, the returned value is also null. Similarly, if the specified object is string.Empty, FontUnit.Empty is returned.
This method can only convert a string to a System.Web.UI.WebControls.FontUnit.