Implementing the UI Automation RangeValue Control Pattern

 
System_CAPS_ICON_note.jpg Note

This documentation is intended for .NET Framework developers who want to use the managed UI Automation classes defined in the System.Windows.Automation namespace. For the latest information about UI Automation, see Windows Automation API: UI Automation.

This topic introduces guidelines and conventions for implementing IRangeValueProvider, including information about events and properties. Links to additional references are listed at the end of the topic.

The RangeValuePattern control pattern is used to support controls that can be set to a value within a range. For examples of controls that implement this control pattern, see Control Pattern Mapping for UI Automation Clients.

When implementing the Range Value control pattern, note the following guidelines and conventions:

  • Controls allow recalibration of their supported properties based upon locale or user preference. An example of this is a thermometer control that can be set to display the temperature in Fahrenheit or Celsius.

  • Controls that have ambiguous range values, such as progress bars or sliders, should have those values normalized.

Progress bar.
Example of a Progress Bar Where Value Is of Type Integer and Minimum and Maximum Property Values Are Normalized to 0 and 100, Respectively

Required memberMember typeNotes
IsReadOnlyPropertyPropertyNone
ValuePropertyPropertyNone
LargeChangePropertyPropertyNone
SmallChangePropertyPropertyNone
MaximumPropertyPropertyNone
MinimumPropertyPropertyNone
SetValueMethodsNone

This control pattern has no associated events.

Providers must throw the following exceptions.

Exception typeCondition
ArgumentOutOfRangeExceptionSetValue is called with a value that is either greater than MaximumProperty or less than MinimumProperty.

UI Automation Control Patterns Overview
Support Control Patterns in a UI Automation Provider
UI Automation Control Patterns for Clients
UI Automation Tree Overview
Use Caching in UI Automation

Show: