# ICell

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

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

```rust
trait ICell: Any
```

A cell model (`ICell`).

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

## Members

- [`can_edit`](#function-can_edit)
- [`edit_gestures`](#function-edit_gestures)
- [`value`](#function-value)
- [`as_any`](#function-as_any)
- [`as_text_cell`](#function-as_text_cell)
- [`as_expander_cell`](#function-as_expander_cell)
- [`as_notify_property_changed`](#function-as_notify_property_changed)
- [`as_recyclable`](#function-as_recyclable)
- [`as_editable`](#function-as_editable)
- [`dispose`](#function-dispose)

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

### can_edit

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



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

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

### edit_gestures

```rust
fn edit_gestures(self: &Self) -> BeginEditGestures
```



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

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

### value

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

The value of the cell.

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

<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#L96)

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

### as_text_cell

```rust
fn as_text_cell(self: &Self) -> Option<&dyn ITextCell>
```

The cell as a text cell (`is ITextCell`).

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

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

### as_expander_cell

```rust
fn as_expander_cell(self: &Self) -> Option<&dyn IExpanderCellPresentation>
```

The cell as an expander cell (`is IExpanderCellPresentation`).

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

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

### as_notify_property_changed

```rust
fn as_notify_property_changed(self: &Self) -> Option<&dyn INotifyPropertyChanged>
```

The cell's property change notification, if it has one.

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

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

### as_recyclable

```rust
fn as_recyclable(self: &Self) -> Option<&dyn IRecyclableCell>
```

The cell as a cell that can be pooled (`is IRecyclableCell`).

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

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

### as_editable

```rust
fn as_editable(self: &Self) -> Option<&dyn super::IEditableObject>
```

The cell as an object whose edits are committed or cancelled (`is IEditableObject`).

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

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

### dispose

```rust
fn dispose(self: &Self)
```

Ends the cell's subscriptions (`IDisposable.Dispose`).

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

## Trait implementations

- [`ICell`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icell/)

## Availability

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