# TreeDataGridRowAutomationPeer

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

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

```rust
struct TreeDataGridRowAutomationPeer
```

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

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`owner`](#function-owner)
- [`toggle_state`](#function-toggle_state)
- [`is_read_only`](#function-is_read_only)
- [`expand_collapse_state`](#function-expand_collapse_state)
- [`shows_menu`](#function-shows_menu)
- [`is_selected`](#function-is_selected)
- [`selection_container`](#function-selection_container)
- [`value`](#function-value)
- [`toggle`](#function-toggle)
- [`expand`](#function-expand)
- [`collapse`](#function-collapse)
- [`set_value`](#function-set_value)
- [`add_to_selection`](#function-add_to_selection)
- [`remove_from_selection`](#function-remove_from_selection)
- [`select`](#function-select)

<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/TreeDataGrid/FerroUI.Controls.TreeDataGrid/automation/peers/tree_data_grid_row_automation_peer.rs#L29)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### construct

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

Creates the class data; see `ferroui_base::FerroObject::construct`.

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

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

### new

```rust
fn new(owner: &TreeDataGridRow) -> Ref<Self>
```

Initializes a new peer of `owner`.

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

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

### owner

```rust
fn owner(self: &Self) -> Ref<TreeDataGridRow>
```

The owning row.

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

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

### toggle_state

```rust
fn toggle_state(self: &Self) -> ToggleState
```

Whether the row is expanded (`ToggleState`); indeterminate for a row without an expander.

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

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

### is_read_only

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

The model is read only (`IsReadOnly`).

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

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

### expand_collapse_state

```rust
fn expand_collapse_state(self: &Self) -> ExpandCollapseState
```

`ExpandCollapseState`.

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

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

### shows_menu

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

`ShowsMenu`.

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

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

### is_selected

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

Whether the row is selected (`IsSelected`).

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

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

### selection_container

```rust
fn selection_container(self: &Self) -> Option<Rc<dyn ISelectionProvider>>
```

The selection provider of the owning grid (`SelectionContainer`).

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

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

### value

```rust
fn value(self: &Self) -> Option<String>
```

The text of the model (`Value`).

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

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

### toggle

```rust
fn toggle(self: &Self) -> Result<(), AutomationError>
```

Expands or collapses the row (`Toggle`).

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

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

### expand

```rust
fn expand(self: &Self) -> Result<(), AutomationError>
```

Expands the row (`Expand`).

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

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

### collapse

```rust
fn collapse(self: &Self) -> Result<(), AutomationError>
```

Collapses the row (`Collapse`).

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

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

### set_value

```rust
fn set_value(self: &Self, _value: Option<&str>) -> Result<(), AutomationError>
```

## Errors
Always `AutomationError::NotSupported`: rows are read only (`NotSupportedException`).

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

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

### add_to_selection

```rust
fn add_to_selection(self: &Self) -> Result<(), AutomationError>
```

Adds the row to the selection (`AddToSelection`).

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

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

### remove_from_selection

```rust
fn remove_from_selection(self: &Self) -> Result<(), AutomationError>
```

Removes the row from the selection (`RemoveFromSelection`).

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

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

### select

```rust
fn select(self: &Self) -> Result<(), AutomationError>
```

Selects the row alone (`Select`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `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`
- [`AutomationPeerImplExt`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-automationpeerimplext/)
- [`ControlAutomationPeerImplExt`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-controlautomationpeerimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<TreeDataGridRowAutomationPeer>`](/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/)
- [`ControlAutomationPeerImpl`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-controlautomationpeerimpl/)
- [`AutomationPeerImpl`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-automationpeerimpl/)

## Availability

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