FontUnitConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns a value indicating whether the converter can convert a FontUnit object to the specified type.

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

public:
virtual bool CanConvertTo (
	ITypeDescriptorContext^ context, 
	Type^ destinationType
) override
public boolean CanConvertTo (
	ITypeDescriptorContext context, 
	Type destinationType
)
public override function CanConvertTo (
	context : ITypeDescriptorContext, 
	destinationType : Type
) : boolean

Parameters

context

An ITypeDescriptorContext that indicates the context of the object to convert.

destinationType

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

Return Value

true if the converter supports converting a FontUnit object to the destination type; otherwise, false.
NoteNote

This method will return true only if the destinationType is String. The only type this converter can convert FontUnit into is 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: