Udostępnij za pośrednictwem


IRangeValueProvider Interface

Definition

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 AutomationPeer.GetPattern call and PatternInterface.RangeValue.

public interface class IRangeValueProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1922753556, 7823, 20512, 130, 187, 187, 87, 77, 20, 95, 216)]
struct IRangeValueProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(1922753556, 7823, 20512, 130, 187, 187, 87, 77, 20, 95, 216)]
public interface IRangeValueProvider
Public Interface IRangeValueProvider
Derived
Attributes

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 AutomationPeer.RaisePropertyChangedEvent.

Properties

IsReadOnly

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

LargeChange

Gets 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

Gets the maximum range value that is supported by the control.

Minimum

Gets the minimum range value that is supported by the control.

SmallChange

Gets 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

Gets the value of the control.

Methods

SetValue(Double)

Sets the value of the control.

Applies to

See also