FontNamesConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)
.NET Framework 3.0
Determines whether this converter can convert an object of the specified data type to an array of strings containing individual font names.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: virtual bool CanConvertFrom ( ITypeDescriptorContext^ context, Type^ sourceType ) override
public boolean CanConvertFrom ( ITypeDescriptorContext context, Type sourceType )
public override function CanConvertFrom ( context : ITypeDescriptorContext, sourceType : Type ) : boolean
Not applicable.
Parameters
- context
A System.ComponentModel.ITypeDescriptorContext object that provides information about the context of a type converter. You can optionally pass in a null reference (Nothing in Visual Basic) for this parameter.
- sourceType
A System.Type that represents the data type to convert from.
Return Value
true if the type can be converted; otherwise, false.Use the CanConvertFrom 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 a null reference (Nothing in Visual Basic) for the context parameter.
Community Additions
ADD
Show:
Note: