# TextPresenterProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-textpresenterprops/

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

```rust
trait TextPresenterProps: ElementBuilder
```

The properties and routed events of `TextPresenter`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8755)

## Members

- [`show_selection_highlight`](#function-show_selection_highlight)
- [`caret_index`](#function-caret_index)
- [`reveal_password`](#function-reveal_password)
- [`password_char`](#function-password_char)
- [`selection_brush`](#function-selection_brush)
- [`selection_foreground_brush`](#function-selection_foreground_brush)
- [`caret_brush`](#function-caret_brush)
- [`caret_blink_interval`](#function-caret_blink_interval)
- [`selection_start`](#function-selection_start)
- [`selection_end`](#function-selection_end)
- [`text`](#function-text)
- [`preedit_text`](#function-preedit_text)
- [`preedit_text_cursor_position`](#function-preedit_text_cursor_position)
- [`text_alignment`](#function-text_alignment)
- [`text_wrapping`](#function-text_wrapping)
- [`line_height`](#function-line_height)
- [`letter_spacing`](#function-letter_spacing)
- [`background`](#function-background)

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

### show_selection_highlight

```rust
fn show_selection_highlight<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `TextPresenter::show_selection_highlight_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8757)

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

### caret_index

```rust
fn caret_index<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
```

Sets `TextPresenter::caret_index_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8762)

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

### reveal_password

```rust
fn reveal_password<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `TextPresenter::reveal_password_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8767)

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

### password_char

```rust
fn password_char<M>(self: Self, value: impl IntoProp<char, M>) -> Self
```

Sets `TextPresenter::password_char_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8772)

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

### selection_brush

```rust
fn selection_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TextPresenter::selection_brush_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8777)

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

### selection_foreground_brush

```rust
fn selection_foreground_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TextPresenter::selection_foreground_brush_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8782)

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

### caret_brush

```rust
fn caret_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TextPresenter::caret_brush_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8787)

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

### caret_blink_interval

```rust
fn caret_blink_interval<M>(self: Self, value: impl IntoProp<std::time::Duration, M>) -> Self
```

Sets `TextPresenter::caret_blink_interval_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8792)

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

### selection_start

```rust
fn selection_start<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
```

Sets `TextPresenter::selection_start_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8797)

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

### selection_end

```rust
fn selection_end<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
```

Sets `TextPresenter::selection_end_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8802)

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

### text

```rust
fn text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
```

Sets `TextPresenter::text_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8807)

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

### preedit_text

```rust
fn preedit_text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
```

Sets `TextPresenter::preedit_text_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8812)

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

### preedit_text_cursor_position

```rust
fn preedit_text_cursor_position<M>(self: Self, value: impl IntoProp<Option<i32>, M>) -> Self
```

Sets `TextPresenter::preedit_text_cursor_position_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8817)

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

### text_alignment

```rust
fn text_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextAlignment, M>) -> Self
```

Sets `TextPresenter::text_alignment_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8822)

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

### text_wrapping

```rust
fn text_wrapping<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextWrapping, M>) -> Self
```

Sets `TextPresenter::text_wrapping_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8827)

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

### line_height

```rust
fn line_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `TextPresenter::line_height_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8832)

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

### letter_spacing

```rust
fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `TextPresenter::letter_spacing_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8837)

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

### background

```rust
fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TextPresenter::background_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8842)

## Trait implementations

- [`TextPresenterProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-textpresenterprops/)

## Availability

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