IRangeValueProvider interface

Applies to Windows and Windows Phone

Exposes methods and properties to support access by a Microsoft UI Automation client to controls that can be set to a value within a range. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.RangeValue.

Syntax


public interface IRangeValueProvider

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The IRangeValueProvider interface has these types of members:

Methods

The IRangeValueProvider interface has these methods. It also inherits methods from the Object class.

MethodDescription
SetValue Sets the value of the control.

 

Properties

The IRangeValueProvider interface has these properties.

PropertyAccess typeDescription

IsReadOnly

Read-onlyGets a value that indicates whether the value of a control is read-only.

LargeChange

Read-onlyGets the value that is added to or subtracted from the Value property when a large change is made, such as with the PAGE DOWN key.

Maximum

Read-onlyGets the maximum range value that is supported by the control.

Minimum

Read-onlyGets the minimum range value that is supported by the control.

SmallChange

Read-onlyGets the value that is added to or subtracted from the Value property when a small change is made, such as with an arrow key.

Value

Read-onlyGets the value of the control.

 

Remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see RangeValue Control Pattern.

IRangeValueProvider is implemented by the existing Windows Runtime class RangeBaseAutomationPeer. This is the base class for peers for Slider, ScrollBar and ProgressBar. ProgressBarAutomationPeer adds an override such that it won't support the pattern if the value of IsIndeterminate on the owner control is false.

Use RangeValuePatternIdentifiers if you want to reference the IRangeValueProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Provider
Windows::UI::Xaml::Automation::Provider [C++]

Metadata

Windows.winmd

See also

RangeValuePatternIdentifiers
IRangeValueProvider (COM interface)
Custom automation peers
RangeValue Control Pattern

 

 

Show:
© 2014 Microsoft