GridLengthConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) GridLengthConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) GridLengthConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Definition

Attempts to convert a specified object to an instance of 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

Parameters

typeDescriptorContext
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

Describes the context information of a type.

cultureInfo
CultureInfo CultureInfo CultureInfo

Cultural specific information that should be respected during conversion.

source
Object Object Object

The object being converted.

Returns

The instance of GridLength that is created from the converted source.

Exceptions

source object is not null and is not a valid type that can be converted to a GridLength.

Remarks

GridLengthConverter supports conversion to and from the following types: String, Decimal, Single, Double, Int16, Int32, Int64, UInt16, UInt32, UInt64.

Applies to

See also