Langue

PixelFormatConverter.ConvertTo Méthode

Définition

Tente de convertir une instance d’un PixelFormat type spécifié.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

Paramètres

context
ITypeDescriptorContext

Informations de contexte utilisées pour la conversion.

culture
CultureInfo

Informations culturelles respectées lors de la conversion.

value
Object

PixelFormat à convertir.

destinationType
Type

Type évalué pour la conversion.

Retours

Nouvelle instance du destinationType.

Attributs

Exceptions

value est ou n’est null pas un type valide.

S’applique à