This documentation is archived and is not being maintained.

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:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value
) override

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 nullptr, the returned value is also nullptr. Similarly, if the specified object is String::Empty, Empty is returned.

NoteNote:

This method can only convert a string to a FontUnit.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: