GridLengthConverter.ConvertFrom 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 ett angivet objekt till en instans av GridLength.
public:
override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ source);
public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object source);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, source As Object) As Object
Parametrar
- typeDescriptorContext
- ITypeDescriptorContext
Beskriver kontextinformationen för en typ.
- cultureInfo
- CultureInfo
Kulturell specifik information som bör respekteras under konverteringen.
- source
- Object
Objektet som konverteras.
Returer
Instansen av GridLength den skapas från den konverterade source.
Undantag
source objektet är null.
source objektet är inte null och är inte en giltig typ som kan konverteras till en GridLength.
Kommentarer
GridLengthConverterstöder konvertering till och från följande typer: , , , , , , , String, Decimal, , Single. DoubleInt16Int32Int64UInt16UInt32UInt64