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

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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show: