System.Windows.Forms.SelectionRangeConverter.CreateInstance Method

Creates a System.Windows.Forms.SelectionRange object by using the specified type descriptor and set of property values for that object.

Syntax

public override object CreateInstance (System.ComponentModel.ITypeDescriptorContext context, IDictionary propertyValues)

Parameters

context
A System.ComponentModel.ITypeDescriptorContext that provides a format context.
propertyValues
An IDictionary that contains the new property values.

Returns

If successful, the newly created System.Windows.Forms.SelectionRange; otherwise, this method throws an exception.

Remarks

Use the erload:System.Windows.Forms.SelectionRangeConverter.CreateInstance method to make changes to an existing immutable object by creating a modified version of it. This method expects the propertyValues parameter to have elements with key values of Start and End, each with the corresponding DateTime value.

Requirements

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