GridLengthConverter.CanConvertTo(ITypeDescriptorContext, Type) 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 de GridLength peut être convertie en un autre type.
public:
override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean
Paramètres
- typeDescriptorContext
- ITypeDescriptorContext
Décrit les informations de contexte d’un type.
- destinationType
- Type
Type souhaité dont cette instance GridLength est évaluée pour la conversion.
Retours
true si le convertisseur peut convertir cette instance du GridLength type spécifié ; sinon, false.
Remarques
GridLengthConverterprend en charge la conversion vers et à partir des types suivants : String, DecimalSingleDoubleInt16Int32Int64, , UInt16, . UInt32UInt64