FontUnitConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷資料型別是否能轉換為 FontUnit。
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
一個 ITypeDescriptorContext 實作的物件,提供關於型別轉換器的上下文資訊。
傳回
true 若參數指定 sourceType 的資料型態可轉換為 FontUnit;否則, false。
備註
使用此 CanConvertFrom 方法判斷參數指定的 sourceType 資料型別是否能轉換為 FontUnit。