IconConverter::CanConvertTo Method (ITypeDescriptorContext^, Type^)
.NET Framework (current version)
Determines whether this IconConverter can convert an Icon to an instance of a specified type, using the specified context.
Assembly: System.Drawing (in System.Drawing.dll)
public: virtual bool CanConvertTo( ITypeDescriptorContext^ context, Type^ destinationType ) override
Parameters
- context
-
Type:
System.ComponentModel::ITypeDescriptorContext^
An ITypeDescriptorContext that provides a format context.
- destinationType
-
Type:
System::Type^
A Type that specifies the type you want to convert to.
Return Value
Type: System::BooleanThis method returns true if this IconConverter can perform the conversion; otherwise, false.
This method returns true only if destinationType is equal to a byte array or string.
.NET Framework
Available since 1.1
Available since 1.1
Show: