Table of Contents

Method CanConvertTo

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

CanConvertTo(ITypeDescriptorContext?, Type?)

Returns a value indicating whether this converter can convert an object to the given destination type using the context.

public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

Parameters

context ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

destinationType Type

A Type that represents the type to which you want to convert.

Returns

bool

true if this converter can perform the operation; otherwise, false.