語言

PixelFormatConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷 的 PixelFormat 實例是否能轉換成其他類型。

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

輸入用於評估轉換的上下文資訊。

destinationType
Type

評估轉換的目標類型。

傳回

true如果轉換器能轉換這個實例PixelFormat;否則,。 false

適用於