Export (0) Print
Expand All

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
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

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

culture
Type: System.Globalization.CultureInfo

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

value
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.

NoteNote

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

NoteNote

This method can only convert a string to a FontUnit.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft