ColumnHeaderConverter::CanConvertTo Method (ITypeDescriptorContext^, Type^)
.NET Framework (current version)
Returns a value indicating whether the ColumnHeaderConverter can convert a ColumnHeader to the specified type, using the specified context.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: virtual bool CanConvertTo( ITypeDescriptorContext^ context, Type^ destinationType ) override
Parameters
- context
-
Type:
System.ComponentModel::ITypeDescriptorContext^
A ITypeDescriptorContext that provides a format context.
- destinationType
-
Type:
System::Type^
A type representing the type to convert to.
Return Value
Type: System::Booleantrue if this converter can perform the conversion; otherwise, false.
Use the context parameter to extract additional information about the environment from which this converter is invoked. This parameter can be null, so always check it. Also, properties on the context object can return null.
.NET Framework
Available since 2.0
Available since 2.0
Show: