GridLengthConverter.ConvertTo Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Försöker konvertera en instans av GridLength till en angiven typ.
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
Parametrar
- typeDescriptorContext
- ITypeDescriptorContext
Beskriver kontextinformationen för en typ.
- cultureInfo
- CultureInfo
Kulturell specifik information som bör respekteras under konverteringen.
- value
- Object
Instansen av GridLength att konvertera.
- destinationType
- Type
Den typ som den här instansen av GridLength konverteras till.
Returer
Objektet som skapas från den konverterade instansen av GridLength.
- Attribut
Undantag
destinationType är inte en av de giltiga typerna för konvertering.
value är null.
Kommentarer
GridLengthConverterstöder konvertering till och från följande typer: , , , , , , , String, Decimal, , Single. DoubleInt16Int32Int64UInt16UInt32UInt64