# TreeDataGridSelectionMode

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

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

```rust
struct TreeDataGridSelectionMode
```

The selection mode of a `TreeDataGrid` (`[Flags] TreeDataGridSelectionMode`):
rows or cells, one or many.

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

## Members

- [`0`](#struct_field-0)
- [`ROW`](#assoc_const-row)
- [`CELL`](#assoc_const-cell)
- [`MULTIPLE`](#assoc_const-multiple)
- [`contains`](#function-contains)
- [`intersects`](#function-intersects)
- [`parse`](#function-parse)

<a id="struct_field-0"></a>

### 0

```rust
0: u32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_selection_mode.rs#L6)

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

### ROW

```rust
const ROW: TreeDataGridSelectionMode
```

Rows are selected.

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

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

### CELL

```rust
const CELL: TreeDataGridSelectionMode
```

Cells are selected.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_selection_mode.rs#L12)

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

### MULTIPLE

```rust
const MULTIPLE: TreeDataGridSelectionMode
```

More than one row or cell can be selected.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_selection_mode.rs#L14)

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

### contains

```rust
fn contains(self: Self, flag: TreeDataGridSelectionMode) -> bool
```

Whether every flag of `flag` is set.

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

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

### intersects

```rust
fn intersects(self: Self, flag: TreeDataGridSelectionMode) -> bool
```

Whether any flag of `flag` is set (`(mode & flag) != 0`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_selection_mode.rs#L22)

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

### parse

```rust
fn parse(text: &str) -> Option<TreeDataGridSelectionMode>
```

The mode parsed from its markup form: flag names separated by commas
(`"Cell, Multiple"`), or a number.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_selection_mode.rs#L28)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- [`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`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Default`
- `BitOr`
- `BitAnd`
- `Display`

## Availability

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