# RichEditBoxProps

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

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

```rust
trait RichEditBoxProps: ElementBuilder
```

The properties and routed events of `RichEditBox`.

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

## Members

- [`rich_document`](#function-rich_document)
- [`selection_start`](#function-selection_start)
- [`selection_end`](#function-selection_end)
- [`selected_text`](#function-selected_text)
- [`is_text_selection_enabled`](#function-is_text_selection_enabled)
- [`selection_highlight_color`](#function-selection_highlight_color)
- [`selection_highlight_color_when_not_focused`](#function-selection_highlight_color_when_not_focused)
- [`selection_foreground_brush`](#function-selection_foreground_brush)
- [`caret_brush`](#function-caret_brush)
- [`text_alignment`](#function-text_alignment)
- [`text_wrapping`](#function-text_wrapping)
- [`line_height`](#function-line_height)
- [`text_indent`](#function-text_indent)
- [`line_stacking_strategy`](#function-line_stacking_strategy)
- [`text_decorations`](#function-text_decorations)
- [`is_read_only`](#function-is_read_only)
- [`accepts_return`](#function-accepts_return)
- [`accepts_tab`](#function-accepts_tab)
- [`caret_blink_interval`](#function-caret_blink_interval)
- [`max_length`](#function-max_length)
- [`clipboard_copy_format`](#function-clipboard_copy_format)
- [`disabled_formatting_accelerators`](#function-disabled_formatting_accelerators)
- [`character_casing`](#function-character_casing)
- [`is_text_prediction_enabled`](#function-is_text_prediction_enabled)
- [`input_scope`](#function-input_scope)
- [`placeholder_text`](#function-placeholder_text)
- [`placeholder_foreground`](#function-placeholder_foreground)
- [`header`](#function-header)
- [`header_template`](#function-header_template)
- [`description`](#function-description)
- [`is_undo_enabled`](#function-is_undo_enabled)
- [`undo_limit`](#function-undo_limit)
- [`text`](#function-text)
- [`on_selection_changed`](#function-on_selection_changed)
- [`on_text_changed`](#function-on_text_changed)
- [`on_text_changing`](#function-on_text_changing)
- [`on_selection_changing`](#function-on_selection_changing)
- [`on_copying_to_clipboard`](#function-on_copying_to_clipboard)
- [`on_cutting_to_clipboard`](#function-on_cutting_to_clipboard)
- [`on_pasting_from_clipboard`](#function-on_pasting_from_clipboard)
- [`on_text_composition_started`](#function-on_text_composition_started)
- [`on_text_composition_changed`](#function-on_text_composition_changed)
- [`on_text_composition_ended`](#function-on_text_composition_ended)
- [`on_context_menu_opening`](#function-on_context_menu_opening)

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

### rich_document

```rust
fn rich_document<M>(self: Self, value: impl IntoProp<ferroui_controls::documents::RichTextDocument, M>) -> Self
```

Sets `RichEditBox::rich_document_property`.

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

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

### selection_start

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

Sets `RichEditBox::selection_start_property`.

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

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

### selection_end

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

Sets `RichEditBox::selection_end_property`.

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

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

### selected_text

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

Sets `RichEditBox::selected_text_property`.

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

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

### is_text_selection_enabled

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

Sets `RichEditBox::is_text_selection_enabled_property`.

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

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

### selection_highlight_color

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

Sets `RichEditBox::selection_highlight_color_property`.

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

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

### selection_highlight_color_when_not_focused

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

Sets `RichEditBox::selection_highlight_color_when_not_focused_property`.

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

<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 `RichEditBox::selection_foreground_brush_property`.

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

<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 `RichEditBox::caret_brush_property`.

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

<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 `RichEditBox::text_alignment_property`.

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

<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 `RichEditBox::text_wrapping_property`.

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

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

### line_height

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

Sets `RichEditBox::line_height_property`.

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

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

### text_indent

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

Sets `RichEditBox::text_indent_property`.

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

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

### line_stacking_strategy

```rust
fn line_stacking_strategy<M>(self: Self, value: impl IntoProp<ferroui_controls::documents::LineStackingStrategy, M>) -> Self
```

Sets `RichEditBox::line_stacking_strategy_property`.

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

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

### text_decorations

```rust
fn text_decorations<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::TextDecorationCollection>, M>) -> Self
```

Sets `RichEditBox::text_decorations_property`.

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

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

### is_read_only

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

Sets `RichEditBox::is_read_only_property`.

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

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

### accepts_return

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

Sets `RichEditBox::accepts_return_property`.

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

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

### accepts_tab

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

Sets `RichEditBox::accepts_tab_property`.

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

<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 `RichEditBox::caret_blink_interval_property`.

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

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

### max_length

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

Sets `RichEditBox::max_length_property`.

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

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

### clipboard_copy_format

```rust
fn clipboard_copy_format<M>(self: Self, value: impl IntoProp<ferroui_controls::rich_text::RichEditClipboardFormat, M>) -> Self
```

Sets `RichEditBox::clipboard_copy_format_property`.

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

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

### disabled_formatting_accelerators

```rust
fn disabled_formatting_accelerators<M>(self: Self, value: impl IntoProp<ferroui_controls::DisabledFormattingAccelerators, M>) -> Self
```

Sets `RichEditBox::disabled_formatting_accelerators_property`.

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

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

### character_casing

```rust
fn character_casing<M>(self: Self, value: impl IntoProp<ferroui_controls::RichEditCharacterCasing, M>) -> Self
```

Sets `RichEditBox::character_casing_property`.

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

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

### is_text_prediction_enabled

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

Sets `RichEditBox::is_text_prediction_enabled_property`.

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

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

### input_scope

```rust
fn input_scope<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_base::input::InputScope>>, M>) -> Self
```

Sets `RichEditBox::input_scope_property`.

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

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

### placeholder_text

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

Sets `RichEditBox::placeholder_text_property`.

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

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

### placeholder_foreground

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

Sets `RichEditBox::placeholder_foreground_property`.

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

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

### header

```rust
fn header<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `RichEditBox::header_property`.

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

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

### header_template

```rust
fn header_template<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::templates::IDataTemplate>>, M>) -> Self
```

Sets `RichEditBox::header_template_property`.

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

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

### description

```rust
fn description<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `RichEditBox::description_property`.

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

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

### is_undo_enabled

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

Sets `RichEditBox::is_undo_enabled_property`.

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

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

### undo_limit

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

Sets `RichEditBox::undo_limit_property`.

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

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

### text

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

Sets `RichEditBox::text_property`.

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

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

### on_selection_changed

```rust
fn on_selection_changed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::selection_changed_event`.

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

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

### on_text_changed

```rust
fn on_text_changed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::text_changed_event`.

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

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

### on_text_changing

```rust
fn on_text_changing(self: Self, handler: impl Fn(&ferroui_controls::RichEditBoxTextChangingEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::text_changing_event`.

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

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

### on_selection_changing

```rust
fn on_selection_changing(self: Self, handler: impl Fn(&ferroui_controls::RichEditBoxSelectionChangingEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::selection_changing_event`.

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

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

### on_copying_to_clipboard

```rust
fn on_copying_to_clipboard(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::copying_to_clipboard_event`.

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

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

### on_cutting_to_clipboard

```rust
fn on_cutting_to_clipboard(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::cutting_to_clipboard_event`.

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

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

### on_pasting_from_clipboard

```rust
fn on_pasting_from_clipboard(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::pasting_from_clipboard_event`.

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

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

### on_text_composition_started

```rust
fn on_text_composition_started(self: Self, handler: impl Fn(&ferroui_controls::RichEditCompositionEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::text_composition_started_event`.

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

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

### on_text_composition_changed

```rust
fn on_text_composition_changed(self: Self, handler: impl Fn(&ferroui_controls::RichEditCompositionEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::text_composition_changed_event`.

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

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

### on_text_composition_ended

```rust
fn on_text_composition_ended(self: Self, handler: impl Fn(&ferroui_controls::RichEditCompositionEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::text_composition_ended_event`.

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

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

### on_context_menu_opening

```rust
fn on_context_menu_opening(self: Self, handler: impl Fn(&ferroui_controls::ContextMenuEventArgs) -> () + 'static) -> Self
```

Handles `RichEditBox::context_menu_opening_event`.

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

## Trait implementations

- [`RichEditBoxProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-richeditboxprops/)

## Availability

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