Partager via


BrushConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si cette classe peut convertir un objet d'un type déterminé en un objet Brush.

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

Contexte de conversion.

sourceType
Type

Type à partir duquel effectuer la conversion.

Retours

Boolean

Retourne true si la conversion est possible (l'objet est de type chaîne) ; sinon, false.

S’applique à