# IRangeValueProvider

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/automation/provider/trait-irangevalueprovider/

**trait** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
trait IRangeValueProvider
```

Exposes methods and properties to support access by a UI Automation client to controls
that can be set to a value within a range.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L7)

## Members

- [`peer`](#function-peer)
- [`is_read_only`](#function-is_read_only)
- [`minimum`](#function-minimum)
- [`maximum`](#function-maximum)
- [`value`](#function-value)
- [`large_change`](#function-large_change)
- [`small_change`](#function-small_change)
- [`set_value`](#function-set_value)

<a id="function-peer"></a>

### peer

```rust
fn peer(self: &Self) -> Ref<AutomationPeer>
```

The automation peer that provides this contract.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L9)

<a id="function-is_read_only"></a>

### is_read_only

```rust
fn is_read_only(self: &Self) -> bool
```

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

Windows: `IRangeValueProvider.IsReadOnly`. macOS: no mapping.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L14)

<a id="function-minimum"></a>

### minimum

```rust
fn minimum(self: &Self) -> f64
```

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

Windows: `IRangeValueProvider.Minimum`. macOS: `NSAccessibilityProtocol.accessibilityMinValue`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L19)

<a id="function-maximum"></a>

### maximum

```rust
fn maximum(self: &Self) -> f64
```

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

Windows: `IRangeValueProvider.Maximum`. macOS: `NSAccessibilityProtocol.accessibilityMaxValue`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L24)

<a id="function-value"></a>

### value

```rust
fn value(self: &Self) -> f64
```

Gets the value of the control.

Windows: `IRangeValueProvider.Value`. macOS: `NSAccessibilityProtocol.accessibilityValue`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L29)

<a id="function-large_change"></a>

### large_change

```rust
fn large_change(self: &Self) -> f64
```

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.

Windows: `IRangeValueProvider.LargeChange`. macOS: no mapping.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L35)

<a id="function-small_change"></a>

### small_change

```rust
fn small_change(self: &Self) -> f64
```

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.

Windows: `IRangeValueProvider.SmallChange`. macOS: no mapping.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L41)

<a id="function-set_value"></a>

### set_value

```rust
fn set_value(self: &Self, value: f64) -> Result<(), AutomationError>
```

Sets the value of the control.

Windows: `IRangeValueProvider.SetValue`. macOS: `NSAccessibilityProtocol.setAccessibilityValue`.
## Errors

An `AutomationError` when the state of the element refuses the call
(the exception the member throws in the original).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_range_value_provider.rs#L51)

## Trait implementations

- [`IRangeValueProvider`](/docs/0.5.0/api/ferroui-controls/automation/provider/trait-irangevalueprovider/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
