Converts a System.Web.UI.WebControls.FontUnit to an object with a different data type.
- 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
- A object that represents the System.Web.UI.WebControls.FontUnit to convert.
- destinationType
- A Type that represents the data type to convert to.
A object that represents the converted value.
Use the FontUnitConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, Type) method to convert the System.Web.UI.WebControls.FontUnit specified by the value parameter to an object with the data type specified by the destinationType parameter.
string.Empty is returned from this method if the value parameter contains null. string.Empty is also returned if the FontUnit.Type property of the System.Web.UI.WebControls.FontUnit specified by the value parameter contains the value FontSize.NotSet.
This method can only convert a System.Web.UI.WebControls.FontUnit to a string.