Creates a System.Windows.Forms.SelectionRange object by using the specified type descriptor and set of property values for that object.
- context
- A System.ComponentModel.ITypeDescriptorContext that provides a format context.
- propertyValues
- An IDictionary that contains the new property values.
If successful, the newly created System.Windows.Forms.SelectionRange; otherwise, this method throws an exception.
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.