ColumnHeaderConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

 

Returns a value indicating whether the ColumnHeaderConverter can convert a ColumnHeader to the specified type, using the specified context.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public override bool CanConvertTo(
	ITypeDescriptorContext context,
	Type destinationType
)

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.Boolean

true 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
Return to top
Show: