ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method
Converts the given object to a TimeSpan.
Definition
Namespace: Avalonia.Markup.Xaml.Converters
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.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
- An optional CultureInfo. If not supplied, the current culture is assumed.
- Object
- The Object to convert.
Return Value
Object
An Object that represents the converted value.
Exceptions
NotSupportedException | The conversion cannot be performed. |
FormatException | value is not a valid value for the target type. |
See Also
Reference
TimeSpanTypeConverter Class
ConvertFrom Overload
Avalonia.Markup.Xaml.Converters Namespace