Sprache

FontStyleConverter.ConvertTo Methode

Definition

Versucht, eine Instanz eines FontStyle 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

Kontextinformationen eines Typs.

culture
CultureInfo

CultureInfo des Typs, der konvertiert wird.

value
Object

Die Instanz der FontStyle Konvertierung.

destinationType
Type

Der Typ, in den FontStyle diese Instanz konvertiert wird.

Gibt zurück

Das objekt, das aus der konvertierten Instanz von FontStyle.

Attribute

Ausnahmen

value ist null

-oder-

value ist keine Instanz von FontStyle

-oder-

destinationType ist kein gültiger Zieltyp.

Hinweise

destinationType kann String oder InstanceDescriptor sein.

Gilt für: