Share via


ReportSizeConverter.CanConvertFrom(ITypeDescriptorContext, Type) Méthode

Définition

Indique si ce convertisseur peut convertir un objet dans le type de source donné à l'aide du contexte spécifié.

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 le contexte de format.

sourceType
Type

Type d'origine de la conversion.

Retours

True si ce convertisseur peut effectuer la conversion ; sinon false.

S’applique à