FontUnitConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts a FontUnit to an object with a different data type.

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

public:
virtual Object^ ConvertTo (
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value, 
	Type^ destinationType
) override
public Object ConvertTo (
	ITypeDescriptorContext context, 
	CultureInfo culture, 
	Object value, 
	Type destinationType
)
public override function ConvertTo (
	context : ITypeDescriptorContext, 
	culture : CultureInfo, 
	value : Object, 
	destinationType : Type
) : 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

A System.Object that represents the FontUnit to convert.

destinationType

A System.Type that represents the data type to convert to.

Return Value

A System.Object that represents the converted value.

Use the ConvertTo method to convert the FontUnit specified by the value parameter to an object with the data type specified by the destinationType parameter.

NoteNote:

String.Empty is returned from this method if the value parameter contains a null reference (Nothing in Visual Basic). String.Empty is also returned if the Type property of the FontUnit specified by the value parameter contains the value FontSize.NotSet.

NoteNote:

This method can only convert a FontUnit to a string.

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: