Share via


FontStretchConverter.ConvertTo Méthode

Définition

Tente de convertir une instance de FontStretch en un 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 d'un type.

culture
CultureInfo

CultureInfo du type en cours de conversion.

value
Object

Instance de FontStretch à convertir.

destinationType
Type

Type vers lequel cette instance de FontStretch est convertie.

Retours

Object

Objet créé à partir de l'instance de FontStretch convertie.

Attributs

Exceptions

value a la valeur null.

  • ou - value n'est pas une instance de FontStretch

  • ou - destinationType n'est pas un type de destination valide.

S’applique à