語言

StrokeCollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定義

回傳一個值,指示是否 StrokeCollectionConverter 能將指定類型的物件轉換為 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

參數

context
ITypeDescriptorContext

這 ITypeDescriptorContext 會提供格式的上下文。

sourceType
Type

轉換的對象 Type 。

傳回

true若 能StrokeCollectionConverter將 類型的sourceTypeStrokeCollection物件轉換為 ;否則, false。

適用於