# SelectionModelSelectionChangedEventArgsOf

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/selection/struct-selectionmodelselectionchangedeventargsof/

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

```rust
struct SelectionModelSelectionChangedEventArgsOf<T: PropertyValue>
```

The arguments of the selection changed event of a selection model of
items of type `T`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_model_selection_changed_event_args.rs#L29)

## Members

- [`new`](#function-new)
- [`deselected_indexes`](#function-deselected_indexes)
- [`selected_indexes`](#function-selected_indexes)
- [`deselected_items`](#function-deselected_items)
- [`selected_items`](#function-selected_items)

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

### new

```rust
fn new(deselected_indices: Option<Rc<dyn IReadOnlySelectionList<i32>>>, selected_indices: Option<Rc<dyn IReadOnlySelectionList<i32>>>, deselected_items: Option<Rc<dyn IReadOnlySelectionList<Option<T>>>>, selected_items: Option<Rc<dyn IReadOnlySelectionList<Option<T>>>>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_model_selection_changed_event_args.rs#L39)

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

### deselected_indexes

```rust
fn deselected_indexes(self: &Self) -> Rc<dyn IReadOnlySelectionList<i32>>
```

Gets the indexes of the items that were removed from the selection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_model_selection_changed_event_args.rs#L56)

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

### selected_indexes

```rust
fn selected_indexes(self: &Self) -> Rc<dyn IReadOnlySelectionList<i32>>
```

Gets the indexes of the items that were added to the selection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_model_selection_changed_event_args.rs#L61)

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

### deselected_items

```rust
fn deselected_items(self: &Self) -> Rc<dyn IReadOnlySelectionList<Option<T>>>
```

Gets the items that were removed from the selection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection/selection_model_selection_changed_event_args.rs#L66)

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

### selected_items

```rust
fn selected_items(self: &Self) -> Rc<dyn IReadOnlySelectionList<Option<T>>>
```

Gets the items that were added to the selection.

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

## 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`
- [`SelectionModelSelectionChangedEventArgs`](/docs/0.5.0/api/ferroui-controls-repeater/selection/struct-selectionmodelselectionchangedeventargs/)

## Availability

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