FontStyleConverter.ConvertTo Methode

Definition

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

Kontextinformationen eines Typs.

culture
CultureInfo

Die CultureInfo des zu konvertierenden Typs.

value
Object

Die Instanz von FontStyle, um zu konvertieren.

destinationType
Type

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

Gibt zurück

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

Attribute

Ausnahmen

value ist gleich 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: