GridLengthConverter.ConvertTo Methode

Definition

Versucht, eine Instanz eines GridLength angegebenen Typs zu konvertieren.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, 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 (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object

Parameter

typeDescriptorContext
ITypeDescriptorContext

Beschreibt die Kontextinformationen eines Typs.

cultureInfo
CultureInfo

Kulturspezifische Informationen, die bei der Umwandlung beachtet werden sollten.

value
Object

Die Instanz der GridLength Konvertierung.

destinationType
Type

Der Typ, in den GridLength diese Instanz konvertiert wird.

Gibt zurück

Das Objekt, das aus der konvertierten Instanz von GridLength.

Attribute

Ausnahmen

destinationType ist nicht einer der gültigen Typen für die Konvertierung.

value ist null.

Hinweise

GridLengthConverterunterstützt die Konvertierung in und aus den folgenden Typen: String, , Decimal, Single, , DoubleInt16, Int32, Int64, UInt16, , . . UInt32UInt64

Gilt für:

Weitere Informationen