RectConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Détermine si un objet peut être converti d’un type donné en instance de Rect.

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

Fournit des informations contextuelles requises pour la conversion.

sourceType
Type

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

Retours

true si le type peut être converti en un Rect; sinon, false.

S’applique à