DataGridLengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定型態的實例是否能轉換為該 DataGridLength 類別的實例。
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
一個提供格式上下文的物件。
- sourceType
- Type
是從那種人轉換的類型。
傳回
true如果這個轉換器能執行轉換;否則,。 false
備註
此轉換器可從以下類型轉換: