Edytuj

Udostępnij za pośrednictwem


ThicknessConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Determines whether the type converter can convert an instance of Thickness to a different type.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean

Parameters

typeDescriptorContext
ITypeDescriptorContext

The context information of a type.

destinationType
Type

The type for which the type converter is evaluating this instance of Thickness for conversion.

Returns

true if the type converter can convert this instance of Thickness to the destinationType; otherwise, false.

Applies to

See also