# ITreeDataGridRows

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-itreedatagridrows/

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

```rust
trait ITreeDataGridRows
```

The rows of a presentation, which realize the cells (`ITreeDataGridRows`).

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

## Members

- [`count`](#function-count)
- [`get`](#function-get)
- [`get_row_at`](#function-get_row_at)
- [`model_index_to_row_index`](#function-model_index_to_row_index)
- [`row_index_to_model_index`](#function-row_index_to_model_index)
- [`realize_cell`](#function-realize_cell)
- [`unrealize_cell`](#function-unrealize_cell)
- [`add_collection_changed`](#function-add_collection_changed)
- [`remove_collection_changed`](#function-remove_collection_changed)
- [`try_recycle_cell`](#function-try_recycle_cell)
- [`as_any`](#function-as_any)

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

### count

```rust
fn count(self: &Self) -> usize
```



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

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

### get

```rust
fn get(self: &Self, index: usize) -> RowRef
```



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

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

### get_row_at

```rust
fn get_row_at(self: &Self, y: f64) -> (i32, f64)
```

The index and top edge of the row at `y` (`GetRowAt`).

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

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

### model_index_to_row_index

```rust
fn model_index_to_row_index(self: &Self, model_index: &IndexPath) -> i32
```



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

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

### row_index_to_model_index

```rust
fn row_index_to_model_index(self: &Self, row_index: i32) -> IndexPath
```



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

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

### realize_cell

```rust
fn realize_cell(self: &Self, column: &ColumnRef, column_index: i32, row_index: i32) -> CellRef
```

The cell of `column` (at `column_index`) in the row at `row_index`.

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

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

### unrealize_cell

```rust
fn unrealize_cell(self: &Self, cell: &CellRef, column_index: i32, row_index: i32)
```



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

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

### add_collection_changed

```rust
fn add_collection_changed(self: &Self, handler: Rc<RowsChangedHandler>) -> u64
```

`CollectionChanged`.

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

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

### remove_collection_changed

```rust
fn remove_collection_changed(self: &Self, token: u64)
```



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

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

### try_recycle_cell

```rust
fn try_recycle_cell(self: &Self, _column: &ColumnRef, _cell: &CellRef) -> bool
```

Returns a cell to the pool of its column (`IRecyclingCellRows.TryRecycleCell`).

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

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

### as_any

```rust
fn as_any(self: &Self) -> &dyn Any
```



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

## Trait implementations

- [`ITreeDataGridRows`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-itreedatagridrows/)

## Availability

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