FontWeightConverter.ConvertTo Methode

Definition

Versucht, eine Instanz von FontWeight in einen angegebenen Typ 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 die CultureInfo des zu konvertierenden Typs.

value
Object

Die Instanz von FontWeight, um zu konvertieren.

destinationType
Type

Der Typ, in den diese Instanz von FontWeight konvertiert wird.

Gibt zurück

Object

Das Objekt, das aus der konvertierten Instanz von FontWeight erstellt wird.

Attribute

Ausnahmen

value ist gleich null.

- oder - value ist keine Instanz von FontWeight

- oder - destinationType ist kein gültiger Zieltyp.

Gilt für