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
Not applicable.

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 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: