# SelectingItemsControlSelectionAdapter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/utils/struct-selectingitemscontrolselectionadapter/

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

```rust
struct SelectingItemsControlSelectionAdapter
```

Represents the selection adapter contained in the drop-down portion of
an `AutoCompleteBox` control.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L41)

## Members

- [`new`](#function-new)
- [`with_selector`](#function-with_selector)
- [`with_overrides`](#function-with_overrides)
- [`selector_control`](#function-selector_control)
- [`set_selector_control`](#function-set_selector_control)
- [`selected_index_increment`](#function-selected_index_increment)
- [`selected_index_decrement`](#function-selected_index_decrement)
- [`on_commit`](#function-on_commit)
- [`base_on_commit`](#function-base_on_commit)
- [`on_cancel`](#function-on_cancel)
- [`base_on_cancel`](#function-base_on_cancel)

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

### new

```rust
fn new() -> Rc<Self>
```

Initializes a new instance of the
`SelectingItemsControlSelectionAdapter` class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L64)

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

### with_selector

```rust
fn with_selector(selector: Ref<SelectingItemsControl>) -> Rc<Self>
```

Initializes a new instance of the
`SelectingItemsControlSelectionAdapter` class with the specified
`SelectingItemsControl` control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L71)

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

### with_overrides

```rust
fn with_overrides(selector: Option<Ref<SelectingItemsControl>>, overrides: Rc<dyn SelectingItemsControlSelectionAdapterOverrides>) -> Rc<Self>
```

Creates an adapter whose overridable members are replaced by
`overrides`: the form a class deriving from the adapter takes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L77)

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

### selector_control

```rust
fn selector_control(self: &Self) -> Option<Ref<SelectingItemsControl>>
```

Gets the underlying `SelectingItemsControl` control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L105)

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

### set_selector_control

```rust
fn set_selector_control(self: &Self, value: Option<Ref<SelectingItemsControl>>)
```

Sets the underlying `SelectingItemsControl` control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L110)

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

### selected_index_increment

```rust
fn selected_index_increment(self: &Self)
```

Increments the selected index property of the selector control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L183)

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

### selected_index_decrement

```rust
fn selected_index_decrement(self: &Self)
```

Decrements the selected index property of the selector control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L191)

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

### on_commit

```rust
fn on_commit(self: &Self)
```

Raises the commit event. Overridable: see
`SelectingItemsControlSelectionAdapterOverrides::on_commit`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L204)

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

### base_on_commit

```rust
fn base_on_commit(self: &Self)
```

The implementation of `on_commit` of this class,
for overrides.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L213)

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

### on_cancel

```rust
fn on_cancel(self: &Self)
```

Raises the cancel event. Overridable: see
`SelectingItemsControlSelectionAdapterOverrides::on_cancel`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L228)

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

### base_on_cancel

```rust
fn base_on_cancel(self: &Self)
```

The implementation of `on_cancel` of this class,
for overrides.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L237)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`ISelectionAdapter`](/docs/0.5.0/api/ferroui-controls/utils/trait-iselectionadapter/)

## Availability

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