Table of Contents

Method ConvertFrom

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)

Converts the given object to the converter's native type.

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

Parameters

context ITypeDescriptorContext

A TypeDescriptor that provides a format context. You can use this object to get additional information about the environment from which this converter is being invoked.

culture CultureInfo

A CultureInfo that specifies the culture to represent the brush.

value object

The object to convert.

Returns

object

An object representing the converted value.

Exceptions

ArgumentException

The conversion cannot be performed.