System.Windows.Forms.SelectionRangeConverter.ConvertFrom Method

Converts the specified value to the converter's native type by using the specified locale.

Syntax

public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)

Parameters

context
A System.ComponentModel.ITypeDescriptorContext that provides a format context.
culture
The locale information for the conversion.
value
The object to convert.

Returns

An object that represents the converted value.

Remarks

The SelectionRangeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method is specialized to convert string values that represent a range of dates to their System.Windows.Forms.SelectionRange representations. Types other than string are passed to the base class implementation of this method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0