# ExpandCollapseState

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

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

```rust
enum ExpandCollapseState
```

Contains values that specify the `ExpandCollapseState` automation property value of a UI
Automation element.

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

## Members

- [`Collapsed`](#variant-collapsed)
- [`Expanded`](#variant-expanded)
- [`LeafNode`](#variant-leafnode)
- [`PartiallyExpanded`](#variant-partiallyexpanded)

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

### Collapsed

```rust
Collapsed
```

No child nodes, controls, or content of the UI Automation element are displayed.

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

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

### Expanded

```rust
Expanded
```

All child nodes, controls or content of the UI Automation element are displayed.

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

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

### LeafNode

```rust
LeafNode
```

The UI Automation element has no child nodes, controls, or content to display.

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

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

### PartiallyExpanded

```rust
PartiallyExpanded
```

Some, but not all, child nodes, controls, or content of the UI Automation element are
displayed.

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

## 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`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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