FontFamilyConverter.CanConvertFrom(ITypeDescriptorContext, Type) FontFamilyConverter.CanConvertFrom(ITypeDescriptorContext, Type) FontFamilyConverter.CanConvertFrom(ITypeDescriptorContext, Type) FontFamilyConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

定義

判斷類別是否可以從指定的型別轉換為 FontFamily 的執行個體。Determines whether a class can be converted from a given type to an instance of FontFamily.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ td, Type ^ t);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext td, Type t);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (td As ITypeDescriptorContext, t As Type) As Boolean

參數

td
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

描述類型的內容資訊。Describes the context information of a type.

t
Type Type Type Type

正在評估以進行轉換之來源的型別。The type of the source that is being evaluated for conversion.

傳回

如果轉換子可從指定的型別轉換成 FontFamily 的執行個體則為 true,否則為 falsetrue if the converter can convert from the specified type to an instance of FontFamily; otherwise, false.

備註

FontFamilyConverter支援在String類型之間進行轉換。FontFamilyConverter supports conversion to and from the String type.

適用於