ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method
Attempts to convert to a DataGridLength from the given object.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)
- C#
- VB
- F#
public override Object ConvertFrom(
ITypeDescriptorContext context,
CultureInfo culture,
Object value
)
Public Overrides Function ConvertFrom (
context As ITypeDescriptorContext,
culture As CultureInfo,
value As Object
) As Object
abstract ConvertFrom :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object -> Object
override ConvertFrom :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object -> Object
Parameters
- ITypeDescriptorContext
- An ITypeDescriptorContext that provides a format context.
- CultureInfo
- The CultureInfo to use for the conversion.
- Object
- The object to convert to a GridLength.
Return Value
Object
The GridLength instance which was constructed.
Exceptions
NotSupportedException | A NotSupportedException is thrown if the example object is null. |
See Also
Reference
DataGridLengthConverter Class
ConvertFrom Overload
Avalonia.Controls Namespace