DataGridLengthConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

override ConvertFrom : 
        context:ITypeDescriptorContext *
        culture:CultureInfo *
        value:Object -> Object

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: