# CalendarSelectionMode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/enum-calendarselectionmode/

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

```rust
enum CalendarSelectionMode
```

Specifies values that describe the available selection modes for a
[`Calendar`](/docs/0.5.0/api/ferroui-controls/struct-calendar/).

This enumeration provides the values that are used by the SelectionMode
property.

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

## Members

- [`SingleDate`](#variant-singledate)
- [`SingleRange`](#variant-singlerange)
- [`MultipleRange`](#variant-multiplerange)
- [`None`](#variant-none)

<a id="variant-singledate"></a>

### SingleDate

```rust
SingleDate = 0
```

Only a single date can be selected. Use the
`Calendar::selected_date` property to retrieve the selected date.

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

<a id="variant-singlerange"></a>

### SingleRange

```rust
SingleRange = 1
```

A single range of dates can be selected. Use the
`Calendar::selected_dates` property to retrieve the selected
dates.

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

<a id="variant-multiplerange"></a>

### MultipleRange

```rust
MultipleRange = 2
```

Multiple non-contiguous ranges of dates can be selected. Use the
`Calendar::selected_dates` property to retrieve the selected
dates.

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

<a id="variant-none"></a>

### None

```rust
None = 3
```

No selections are allowed.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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