DataGridLengthConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 

Converts the specified object to an instance of the DataGridLength class.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	object value
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

An object that provides a format context.

culture
Type: System.Globalization.CultureInfo

The object to use as the current culture.

value
Type: System.Object

The value to convert.

Return Value

Type: System.Object

The converted value.

Exception Condition
ArgumentNullException

value is null.

ArgumentException

value is not a valid type that can be converted to type DataGridLength.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top
Show: