System.Web.UI.WebControls.FontUnitConverter.ConvertFrom Method

Converts an object to a System.Web.UI.WebControls.FontUnit in a specific culture.

Syntax

public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)

Parameters

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.

Returns

A object that represents the converted value.

Remarks

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.

Note:

If the specified object is null, the returned value is also null. Similarly, if the specified object is string.Empty, FontUnit.Empty is returned.

Note:

This method can only convert a string to a System.Web.UI.WebControls.FontUnit.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0