System.Web.UI.WebControls.FontNamesConverter.CanConvertFrom Method

Determines whether this converter can convert an object of the specified data type to an array of strings containing individual font names.

Syntax

public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType)

Parameters

context
A System.ComponentModel.ITypeDescriptorContext object that provides information about the context of a type converter. You can optionally pass in null for this parameter.
sourceType
A Type that represents the data type to convert from.

Returns

true if the type can be converted; otherwise, false.

Remarks

Use the FontNamesConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) method to determine whether the specified data type can be converted to an array of strings containing individual font names.

Note:

This converter can convert only from a string data type. The sourceType parameter must be of type string. Otherwise, this method returns false to indicate that the specified data type cannot be converted.

You can optionally pass in null for the context parameter.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0