語言

FontStretchConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

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

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

這個實例 FontStretch 正在評估轉換成的目標類型。

傳回

true如果轉換器能轉換為FontStretchdestinationType;否則,false。

適用於