Språk

GridLengthConverter.ConvertFrom Metod

Definition

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

Gäller för

Se även