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

傳回

如果 StrokeCollectionConverter 可將 sourceType 型別的物件轉換成 StrokeCollection 則為 true,否則為 false

適用於