FontWeightConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Retourne une valeur qui indique si ce convertisseur peut convertir un objet du type spécifié en une instance de FontWeight.

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

Informations de contexte d'un type.

t
Type

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

Retours

true si le convertisseur peut convertir le type fourni en une instance de FontWeight ; sinon, false.

S’applique à