Export (0) Print
Expand All

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)

abstract ConvertFrom : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object -> Object  
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.

ExceptionCondition
ArgumentNullException

value is a null reference (Nothing in Visual Basic).

ArgumentException

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft