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
public Object ConvertFrom (
	ITypeDescriptorContext context, 
	CultureInfo culture, 
	Object value
)
public override function ConvertFrom (
	context : ITypeDescriptorContext, 
	culture : CultureInfo, 
	value : Object
) : Object
Not applicable.

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 FontUnit, when it is expressed in points.

value

The object to convert to a FontUnit.

Return Value

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 a null reference (Nothing in Visual Basic), the returned value is also a null reference (Nothing in Visual Basic). Similarly, if the specified object is String.Empty, Empty is returned.

NoteNote:

This method can only convert a string to a FontUnit.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: