# TextBoxImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/trait-textboximpl/

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

```rust
trait TextBoxImpl: TemplatedControlImpl + $crate::Upcast<TextBox>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/text_box.rs#L121)

## Members

- [`coerce_text`](#function-coerce_text)

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

### coerce_text

```rust
fn coerce_text(this: &Self, value: Option<String>) -> Option<String>
```

Coerces the current text.

This method also manages the internal undo/redo state whenever
the text changes: if overridden, ensure that the base is called
or undo/redo won't work correctly.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/text_box.rs#L121)

## Trait implementations

- [`TextBoxImpl`](/docs/0.5.0/api/ferroui-controls/trait-textboximpl/)

## Availability

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