FontWeightConverter.ConvertTo Methode

Definition

Versucht, eine Instanz eines FontWeight angegebenen Typs zu konvertieren.

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

Parameter

context
ITypeDescriptorContext

Beschreibt die Kontextinformationen eines Typs.

culture
CultureInfo

Beschreibt den CultureInfo Typ, der konvertiert wird.

value
Object

Die Instanz der FontWeight Konvertierung.

destinationType
Type

Der Typ, in den FontWeight diese Instanz konvertiert wird.

Gibt zurück

Das objekt, das aus der konvertierten Instanz von FontWeight.

Attribute

Ausnahmen

value ist null

-oder-

value i ist keine Instanz von FontWeight

-oder-

destinationType ist kein gültiger Zieltyp.

Gilt für: