Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FontUnitConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)


Converts an object to a FontUnit in a specific culture.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public override object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	object value


Type: System.ComponentModel.ITypeDescriptorContext

An System.ComponentModel.ITypeDescriptorContext implemented object that provides information about the context of a type converter.

Type: System.Globalization.CultureInfo

A System.Globalization.CultureInfo that specifies the culture to represent the FontUnit, when it is expressed in points.

Type: System.Object

The object to convert to a FontUnit.

Return Value

Type: System.Object

A System.Object that represents the converted value.

Use the ConvertFrom method to convert the object specified by the value parameter to a 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, Empty is returned.


This method can only convert a string to a FontUnit.

.NET Framework
Available since 1.1
Return to top
© 2017 Microsoft