# ITextCellOptions

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

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

```rust
trait ITextCellOptions: ICellOptions
```

The options of a text cell (`ITextCellOptions`).

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

## Members

- [`string_format`](#function-string_format)
- [`has_default_string_format`](#function-has_default_string_format)
- [`text_trimming`](#function-text_trimming)
- [`text_wrapping`](#function-text_wrapping)
- [`text_alignment`](#function-text_alignment)

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

### string_format

```rust
fn string_format(self: &Self) -> String
```



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

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

### has_default_string_format

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

Whether the string format is the default `{0}`, which formats a value as its own text.

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

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

### text_trimming

```rust
fn text_trimming(self: &Self) -> Rc<dyn TextTrimming>
```



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

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

### text_wrapping

```rust
fn text_wrapping(self: &Self) -> TextWrapping
```



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

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

### text_alignment

```rust
fn text_alignment(self: &Self) -> TextAlignment
```



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

## Trait implementations

- [`ITextCellOptions`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-itextcelloptions/)

## Availability

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