FontFamilyConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si une classe peut être convertie à partir d'un type donné en une instance de 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

Paramètres

td
ITypeDescriptorContext

Décrit les informations de contexte d’un type.

t
Type

Type de la source qui est en cours d'évaluation pour conversion.

Retours

Boolean

true si le convertisseur peut convertir à partir du type spécifié en une instance de FontFamily ; sinon, false.

Remarques

FontFamilyConverter prend en charge la conversion vers et depuis le String type.

S’applique à