# SelectingItemsControlAutomationPeer

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/automation/peers/struct-selectingitemscontrolautomationpeer/

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

```rust
struct SelectingItemsControlAutomationPeer
```

An automation peer which represents a [`SelectingItemsControl`](/docs/0.5.0/api/ferroui-controls/primitives/struct-selectingitemscontrol/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L17)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`get_selection_core`](#function-get_selection_core)
- [`get_selection_mode_core`](#function-get_selection_mode_core)
- [`owner_property_changed`](#function-owner_property_changed)
- [`owner_selection_changed`](#function-owner_selection_changed)
- [`construct`](#function-construct)
- [`can_select_multiple`](#function-can_select_multiple)
- [`is_selection_required`](#function-is_selection_required)
- [`get_selection`](#function-get_selection)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L23)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<SelectingItemsControlAutomationPeer>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L23)

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

### get_selection_core

```rust
fn get_selection_core(self: &Self) -> Option<Vec<Ref<AutomationPeer>>>
```

Gets the peers of the selected items, or `None` if there are
none.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L23)

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

### get_selection_mode_core

```rust
fn get_selection_mode_core(self: &Self) -> SelectionMode
```

Gets the selection mode of the owner.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L23)

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

### owner_property_changed

```rust
fn owner_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
```

Called when a property of the owner has changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L23)

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

### owner_selection_changed

```rust
fn owner_selection_changed(self: &Self, e: &dyn SelectionModelSelectionChangedEventArgs)
```

Called when the selection of the owner has changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L23)

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

### construct

```rust
fn construct(owner: &SelectingItemsControl) -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.
The class is abstract: it is the base of the peers of the selecting
items control classes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L126)

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

### can_select_multiple

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

Gets a value that indicates whether more than one item can be
selected concurrently (the selection provider contract).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L136)

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

### is_selection_required

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

Gets a value that indicates whether at least one item is required
to be selected (the selection provider contract).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L142)

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

### get_selection

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

Retrieves the peer of each item that is selected (the selection
provider contract).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/selecting_items_control_automation_peer.rs#L148)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`AutomationPeerImplExt`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-automationpeerimplext/)
- [`ControlAutomationPeerImplExt`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-controlautomationpeerimplext/)
- [`ItemsControlAutomationPeerImplExt`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-itemscontrolautomationpeerimplext/)
- [`SelectingItemsControlAutomationPeerImplExt`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-selectingitemscontrolautomationpeerimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<SelectingItemsControlAutomationPeer>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`AutomationPeerImpl`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-automationpeerimpl/)
- [`ControlAutomationPeerImpl`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-controlautomationpeerimpl/)
- [`ItemsControlAutomationPeerImpl`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-itemscontrolautomationpeerimpl/)
- [`SelectingItemsControlAutomationPeerImpl`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-selectingitemscontrolautomationpeerimpl/)

## Availability

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