Redigeeri

Jagamisviis:


ThicknessConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Determines whether the type converter can create an instance of Thickness from a specified type.

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

Parameters

typeDescriptorContext
ITypeDescriptorContext

The context information of a type.

sourceType
Type

The source type that the type converter is evaluating for conversion.

Returns

true if the type converter can create an instance of Thickness from the specified type; otherwise, false.

Applies to

See also