Langue

TextDecorationCollectionConverter.CanConvertFrom Méthode

Définition

Retourne une valeur qui indique si ce convertisseur peut convertir un objet du type donné en une instance de TextDecorationCollection.

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

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

sourceType
Type

Type de la source évaluée pour la conversion.

Retours

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

S’applique à