GridLengthConverter.ConvertTo Methode

Definitie

Pogingen om een exemplaar van GridLength een opgegeven type te converteren.

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

Parameters

typeDescriptorContext
ITypeDescriptorContext

Beschrijft de contextinformatie van een type.

cultureInfo
CultureInfo

Culturele specifieke informatie die tijdens de conversie moet worden gerespecteerd.

value
Object

Het exemplaar van GridLength om te converteren.

destinationType
Type

Het type waarnaar dit exemplaar GridLength wordt geconverteerd.

Retouren

Het object dat is gemaakt op basis van het geconverteerde exemplaar van GridLength.

Kenmerken

Uitzonderingen

destinationType is geen geldige typen voor conversie.

value is null.

Opmerkingen

GridLengthConverterondersteunt conversie naar en van de volgende typen: String, Decimal, Single, Double, , Int16Int32, Int64UInt16, UInt32. UInt64

Van toepassing op

Zie ook