Editar

Compartir a través de


StrokeCollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Returns a value that indicates whether the StrokeCollectionConverter can convert an object of a specified type to a StrokeCollection.

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

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that provides the format context.

sourceType
Type

The Type to convert from.

Returns

true if the StrokeCollectionConverter can convert an object of type sourceType to a StrokeCollection; otherwise, false.

Applies to