RibbonControlLengthConverter.CanConvertFrom Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si une instance du type spécifié peut être convertie en instance de la RibbonControlLength structure.
public:
override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean
Paramètres
- context
- ITypeDescriptorContext
Objet qui fournit un contexte de format.
- sourceType
- Type
Type à convertir.
Retours
true si ce convertisseur peut effectuer la conversion ; sinon, false.
Remarques
Ce convertisseur peut effectuer une conversion à partir de types de chaîne, d’entier et de virgule flottante.