# SelectionChangedEventArgs

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

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

```rust
struct SelectionChangedEventArgs
```

Provides data for the `SelectionChanged` event.

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

## Members

- [`new`](#function-new)
- [`added_items`](#function-added_items)
- [`removed_items`](#function-removed_items)

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

### new

```rust
fn new<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, removed_items: Vec<Option<BoxedValue>>, added_items: Vec<Option<BoxedValue>>) -> Self
```

Initializes a new instance of the `SelectionChangedEventArgs`
class.

`routed_event` is the event being raised, `removed_items` the items
removed from the selection and `added_items` the items added to the
selection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection_changed_event_args.rs#L21)

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

### added_items

```rust
fn added_items(self: &Self) -> &[Option<BoxedValue>]
```

Gets the items that were added to the selection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/selection_changed_event_args.rs#L34)

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

### removed_items

```rust
fn removed_items(self: &Self) -> &[Option<BoxedValue>]
```

Gets the items that were removed from the selection.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Default`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

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