# TextColumnOptions

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

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

```rust
struct TextColumnOptions<M: 'static>
```

`TextColumnOptions<TModel>`.

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

## Members

- [`new`](#function-new)
- [`is_text_search_enabled`](#function-is_text_search_enabled)
- [`set_is_text_search_enabled`](#function-set_is_text_search_enabled)
- [`string_format`](#function-string_format)
- [`set_string_format`](#function-set_string_format)
- [`culture`](#function-culture)
- [`set_culture`](#function-set_culture)
- [`text_trimming`](#function-text_trimming)
- [`set_text_trimming`](#function-set_text_trimming)
- [`text_wrapping`](#function-text_wrapping)
- [`set_text_wrapping`](#function-set_text_wrapping)
- [`text_alignment`](#function-text_alignment)
- [`set_text_alignment`](#function-set_text_alignment)

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

### new

```rust
fn new() -> Self
```



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

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

### is_text_search_enabled

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

Whether the column takes part in text searches.

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

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

### set_is_text_search_enabled

```rust
fn set_is_text_search_enabled(self: &Self, value: bool)
```



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

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

### string_format

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

The format string of the cells of the column.

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

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

### set_string_format

```rust
fn set_string_format(self: &Self, value: impl Into<String>)
```



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

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

### culture

```rust
fn culture(self: &Self) -> CultureInfo
```

The culture used with the string format.

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

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

### set_culture

```rust
fn set_culture(self: &Self, value: CultureInfo)
```



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

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

### text_trimming

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

The text trimming of the cells of the column.

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

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

### set_text_trimming

```rust
fn set_text_trimming(self: &Self, value: Rc<dyn TextTrimming>)
```



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

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

### text_wrapping

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

The text wrapping of the cells of the column.

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

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

### set_text_wrapping

```rust
fn set_text_wrapping(self: &Self, value: TextWrapping)
```



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

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

### text_alignment

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

The text alignment of the cells of the column.

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

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

### set_text_alignment

```rust
fn set_text_alignment(self: &Self, value: TextAlignment)
```



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

## 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`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Default`
- `Deref`
- [`IColumnOptions<M>`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icolumnoptions/)
- [`ICellOptions`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icelloptions/)
- [`ITextCellOptions`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-itextcelloptions/)
- [`ITextCellCultureOptions`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-itextcellcultureoptions/)

## Availability

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