FontUnitConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

傳回值,指出轉換子是否可將 FontUnit 物件轉換成指定的型別。

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

ITypeDescriptorContext,表示要轉換的物件內容。

destinationType
Type

Type,表示要轉換成的資料型別。

傳回

Boolean

如果轉換子支援將 FontUnit 物件轉換成目的型別,則為 true,否則為 false

備註

只有當 destinationTypeString 時,這個方法才會傳回 true。 此轉換子可轉換 FontUnit 的唯一目標型別為 String

適用於

另請參閱