ThicknessConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷型別轉換器是否能從指定型別建立 的 Thickness 實例。
public:
override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ sourceType);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (typeDescriptorContext As ITypeDescriptorContext, sourceType As Type) As Boolean
參數
- typeDescriptorContext
- ITypeDescriptorContext
一種類型的上下文資訊。
- sourceType
- Type
類型轉換器評估的訊號來源類型。
傳回
true 如果型別轉換器能從指定的型別建立 的 Thickness 實例;否則, false。