Table of Contents

Method ConvertFrom

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

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

ConvertFrom - Attempt to convert to a length from the given object

public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)

Parameters

typeDescriptorContext ITypeDescriptorContext

The ITypeDescriptorContext for this call.

cultureInfo CultureInfo

The CultureInfo which is respected when converting.

source object

The object to convert to a double.

Returns

object

The double representing the size in device-independent units.

Exceptions

ArgumentNullException

An ArgumentNullException is thrown if the example object is null.

ArgumentException

An ArgumentException is thrown if the example object is not null and is not a valid type which can be converted to a double.