語言

StrokeCollectionConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

回傳一個值,指示是否 StrokeCollectionConverter 能將 a StrokeCollection 轉換為指定型別。

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

參數

context
ITypeDescriptorContext

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

destinationType
Type

Type轉化到那裡。

傳回

true 若 能 StrokeCollectionConverter 將 a StrokeCollection 轉換為 destinationType;否則, false。

適用於