PixelFormatConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷轉換器是否能將給定類型的物件轉換為 的實例 PixelFormat。
public:
override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ td, Type ^ t);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext td, Type t);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (td As ITypeDescriptorContext, t As Type) As Boolean
參數
輸入用於評估轉換的上下文資訊。
- t
- Type
正在評估轉換的來源類型。
傳回
true 如果轉換器能將所提供的類型轉換成 的 PixelFormat實例;否則, false。