# RichEditBox

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-richeditbox/

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

```rust
struct RichEditBox
```

A structured rich-text editor rendered by FerroUI's text layout, drawing, and input APIs.

The `Document` is shared with its persistent presenter and remains editable independently of
this control. Read-only and length policies apply to user editing, clipboard, and IME;
applications can replace the document directly. Every user operation goes through the
same transaction engine, including formatting and accessible value changes.

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

## Members

- [`can_format`](#function-can_format)
- [`bold_state`](#function-bold_state)
- [`italic_state`](#function-italic_state)
- [`underline_state`](#function-underline_state)
- [`is_bold`](#function-is_bold)
- [`is_italic`](#function-is_italic)
- [`is_underlined`](#function-is_underlined)
- [`toggle_bold`](#function-toggle_bold)
- [`toggle_italic`](#function-toggle_italic)
- [`toggle_underline`](#function-toggle_underline)
- [`context_menu_opening_event`](#function-context_menu_opening_event)
- [`context_menu_opening`](#function-context_menu_opening)
- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`rich_document_property`](#function-rich_document_property)
- [`selection_start_property`](#function-selection_start_property)
- [`selection_end_property`](#function-selection_end_property)
- [`selected_text_property`](#function-selected_text_property)
- [`is_text_selection_enabled_property`](#function-is_text_selection_enabled_property)
- [`selection_highlight_color_property`](#function-selection_highlight_color_property)
- [`selection_highlight_color_when_not_focused_property`](#function-selection_highlight_color_when_not_focused_property)
- [`selection_foreground_brush_property`](#function-selection_foreground_brush_property)
- [`caret_brush_property`](#function-caret_brush_property)
- [`letter_spacing_property`](#function-letter_spacing_property)
- [`language_property`](#function-language_property)
- [`text_alignment_property`](#function-text_alignment_property)
- [`text_wrapping_property`](#function-text_wrapping_property)
- [`line_height_property`](#function-line_height_property)
- [`text_indent_property`](#function-text_indent_property)
- [`line_stacking_strategy_property`](#function-line_stacking_strategy_property)
- [`text_decorations_property`](#function-text_decorations_property)
- [`is_read_only_property`](#function-is_read_only_property)
- [`accepts_return_property`](#function-accepts_return_property)
- [`accepts_tab_property`](#function-accepts_tab_property)
- [`caret_blink_interval_property`](#function-caret_blink_interval_property)
- [`max_length_property`](#function-max_length_property)
- [`clipboard_copy_format_property`](#function-clipboard_copy_format_property)
- [`disabled_formatting_accelerators_property`](#function-disabled_formatting_accelerators_property)
- [`character_casing_property`](#function-character_casing_property)
- [`is_text_prediction_enabled_property`](#function-is_text_prediction_enabled_property)
- [`input_scope_property`](#function-input_scope_property)
- [`placeholder_text_property`](#function-placeholder_text_property)
- [`placeholder_foreground_property`](#function-placeholder_foreground_property)
- [`header_property`](#function-header_property)
- [`header_template_property`](#function-header_template_property)
- [`description_property`](#function-description_property)
- [`is_undo_enabled_property`](#function-is_undo_enabled_property)
- [`undo_limit_property`](#function-undo_limit_property)
- [`can_undo_property`](#function-can_undo_property)
- [`can_redo_property`](#function-can_redo_property)
- [`can_copy_property`](#function-can_copy_property)
- [`can_cut_property`](#function-can_cut_property)
- [`can_paste_property`](#function-can_paste_property)
- [`can_format_property`](#function-can_format_property)
- [`bold_state_property`](#function-bold_state_property)
- [`italic_state_property`](#function-italic_state_property)
- [`underline_state_property`](#function-underline_state_property)
- [`is_bold_property`](#function-is_bold_property)
- [`is_italic_property`](#function-is_italic_property)
- [`is_underlined_property`](#function-is_underlined_property)
- [`text_property`](#function-text_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`TEMPLATE_PARTS`](#assoc_const-template_parts)
- [`PSEUDO_CLASSES`](#assoc_const-pseudo_classes)
- [`text_presenter`](#function-text_presenter)
- [`content_element`](#function-content_element)
- [`rich_document`](#function-rich_document)
- [`set_rich_document`](#function-set_rich_document)
- [`try_set_rich_document`](#function-try_set_rich_document)
- [`document`](#function-document)
- [`blocks`](#function-blocks)
- [`text_highlighters`](#function-text_highlighters)
- [`selection_start`](#function-selection_start)
- [`set_selection_start`](#function-set_selection_start)
- [`selection_end`](#function-selection_end)
- [`set_selection_end`](#function-set_selection_end)
- [`caret_index`](#function-caret_index)
- [`select`](#function-select)
- [`clear_selection`](#function-clear_selection)
- [`selected_text`](#function-selected_text)
- [`selection_changed`](#function-selection_changed)
- [`is_text_selection_enabled`](#function-is_text_selection_enabled)
- [`set_is_text_selection_enabled`](#function-set_is_text_selection_enabled)
- [`selection_highlight_color`](#function-selection_highlight_color)
- [`set_selection_highlight_color`](#function-set_selection_highlight_color)
- [`selection_highlight_color_when_not_focused`](#function-selection_highlight_color_when_not_focused)
- [`set_selection_highlight_color_when_not_focused`](#function-set_selection_highlight_color_when_not_focused)
- [`selection_foreground_brush`](#function-selection_foreground_brush)
- [`set_selection_foreground_brush`](#function-set_selection_foreground_brush)
- [`caret_brush`](#function-caret_brush)
- [`set_caret_brush`](#function-set_caret_brush)
- [`letter_spacing`](#function-letter_spacing)
- [`language`](#function-language)
- [`set_language`](#function-set_language)
- [`set_letter_spacing`](#function-set_letter_spacing)
- [`text_alignment`](#function-text_alignment)
- [`set_text_alignment`](#function-set_text_alignment)
- [`text_wrapping`](#function-text_wrapping)
- [`set_text_wrapping`](#function-set_text_wrapping)
- [`line_height`](#function-line_height)
- [`set_line_height`](#function-set_line_height)
- [`text_indent`](#function-text_indent)
- [`set_text_indent`](#function-set_text_indent)
- [`line_stacking_strategy`](#function-line_stacking_strategy)
- [`set_line_stacking_strategy`](#function-set_line_stacking_strategy)
- [`text_decorations`](#function-text_decorations)
- [`set_text_decorations`](#function-set_text_decorations)
- [`cursor_rectangle`](#function-cursor_rectangle)
- [`get_rect_from_character_index`](#function-get_rect_from_character_index)
- [`get_rect_from_text_position`](#function-get_rect_from_text_position)
- [`selection_rects`](#function-selection_rects)
- [`get_rects_for_range`](#function-get_rects_for_range)
- [`hit_test_text_position`](#function-hit_test_text_position)
- [`line_metrics`](#function-line_metrics)
- [`is_read_only`](#function-is_read_only)
- [`set_is_read_only`](#function-set_is_read_only)
- [`caret_blink_interval`](#function-caret_blink_interval)
- [`set_caret_blink_interval`](#function-set_caret_blink_interval)
- [`accepts_return`](#function-accepts_return)
- [`set_accepts_return`](#function-set_accepts_return)
- [`accepts_tab`](#function-accepts_tab)
- [`set_accepts_tab`](#function-set_accepts_tab)
- [`max_length`](#function-max_length)
- [`set_max_length`](#function-set_max_length)
- [`clipboard_copy_format`](#function-clipboard_copy_format)
- [`set_clipboard_copy_format`](#function-set_clipboard_copy_format)
- [`disabled_formatting_accelerators`](#function-disabled_formatting_accelerators)
- [`set_disabled_formatting_accelerators`](#function-set_disabled_formatting_accelerators)
- [`character_casing`](#function-character_casing)
- [`set_character_casing`](#function-set_character_casing)
- [`is_text_prediction_enabled`](#function-is_text_prediction_enabled)
- [`set_is_text_prediction_enabled`](#function-set_is_text_prediction_enabled)
- [`input_scope`](#function-input_scope)
- [`set_input_scope`](#function-set_input_scope)
- [`placeholder_text`](#function-placeholder_text)
- [`set_placeholder_text`](#function-set_placeholder_text)
- [`placeholder_foreground`](#function-placeholder_foreground)
- [`set_placeholder_foreground`](#function-set_placeholder_foreground)
- [`header`](#function-header)
- [`set_header`](#function-set_header)
- [`header_template`](#function-header_template)
- [`set_header_template`](#function-set_header_template)
- [`description`](#function-description)
- [`set_description`](#function-set_description)
- [`header_presenter`](#function-header_presenter)
- [`description_presenter`](#function-description_presenter)
- [`placeholder_presenter`](#function-placeholder_presenter)
- [`is_undo_enabled`](#function-is_undo_enabled)
- [`set_is_undo_enabled`](#function-set_is_undo_enabled)
- [`undo_limit`](#function-undo_limit)
- [`set_undo_limit`](#function-set_undo_limit)
- [`can_undo`](#function-can_undo)
- [`can_redo`](#function-can_redo)
- [`can_copy`](#function-can_copy)
- [`can_cut`](#function-can_cut)
- [`can_paste`](#function-can_paste)
- [`text`](#function-text)
- [`text_document`](#function-text_document)
- [`set_text`](#function-set_text)
- [`editor`](#function-editor)
- [`caret_visible`](#function-caret_visible)
- [`insert_text`](#function-insert_text)
- [`replace_selection`](#function-replace_selection)
- [`delete_backward`](#function-delete_backward)
- [`delete_forward`](#function-delete_forward)
- [`apply_format`](#function-apply_format)
- [`apply_paragraph_format`](#function-apply_paragraph_format)
- [`undo`](#function-undo)
- [`redo`](#function-redo)
- [`select_all`](#function-select_all)
- [`set_preedit_text`](#function-set_preedit_text)
- [`cancel_composition`](#function-cancel_composition)
- [`commit_composition`](#function-commit_composition)
- [`export_rtf`](#function-export_rtf)
- [`import_rtf`](#function-import_rtf)
- [`copy`](#function-copy)
- [`cut`](#function-cut)
- [`paste`](#function-paste)
- [`copy_to_clipboard_async`](#function-copy_to_clipboard_async)
- [`paste_from_clipboard_async`](#function-paste_from_clipboard_async)
- [`edit_failed`](#function-edit_failed)
- [`clipboard_failed`](#function-clipboard_failed)
- [`text_input_method_client`](#function-text_input_method_client)
- [`selection_changed_event`](#function-selection_changed_event)
- [`text_changed_event`](#function-text_changed_event)
- [`text_changing_event`](#function-text_changing_event)
- [`selection_changing_event`](#function-selection_changing_event)
- [`copying_to_clipboard_event`](#function-copying_to_clipboard_event)
- [`cutting_to_clipboard_event`](#function-cutting_to_clipboard_event)
- [`pasting_from_clipboard_event`](#function-pasting_from_clipboard_event)
- [`text_composition_started_event`](#function-text_composition_started_event)
- [`text_composition_changed_event`](#function-text_composition_changed_event)
- [`text_composition_ended_event`](#function-text_composition_ended_event)
- [`text_changed`](#function-text_changed)
- [`text_changing`](#function-text_changing)
- [`selection_changing`](#function-selection_changing)

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

### can_format

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

Whether the UI should enable formatting commands. Programmatic formatting
retains the normal editor error contract; disabled controls are not editable
through their command flyout.

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

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

### bold_state

```rust
fn bold_state(self: &Self) -> Option<bool>
```

`None` denotes mixed bold formatting across the selection.

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

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

### italic_state

```rust
fn italic_state(self: &Self) -> Option<bool>
```

`None` denotes mixed italic formatting across the selection.

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

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

### underline_state

```rust
fn underline_state(self: &Self) -> Option<bool>
```

`None` denotes mixed underline formatting across the selection.

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

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

### is_bold

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

Checked only when every selected text run is bold.

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

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

### is_italic

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

Checked only when every selected text run is italic.

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

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

### is_underlined

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

Checked only when every selected text run is underlined.

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

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

### toggle_bold

```rust
fn toggle_bold(self: &Self) -> Result<(), EditError>
```

Toggle bold for the entire selection; a mixed selection becomes bold.

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

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

### toggle_italic

```rust
fn toggle_italic(self: &Self) -> Result<(), EditError>
```

Toggle italic for the entire selection; a mixed selection becomes italic.

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

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

### toggle_underline

```rust
fn toggle_underline(self: &Self) -> Result<(), EditError>
```

Toggle underline in one undo transaction. Existing strike-through,
overline and other decoration data remain specific to each selected run.

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

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

### context_menu_opening_event

```rust
fn context_menu_opening_event() -> &'static RoutedEvent<ContextMenuEventArgs>
```

Raised synchronously before a pointer, holding, or keyboard context
request opens a menu. `Handled` cancels that request.

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

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

### context_menu_opening

```rust
fn context_menu_opening(self: &Self, handler: impl Fn(&Interactive, &ContextMenuEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```



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

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<RichEditBox>
```

Returns a strong reference to this object.

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

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

### rich_document_property

```rust
fn rich_document_property() -> &'static DirectProperty<RichEditBox, RichTextDocument>
```

The shared document the editor edits (`RichDocument`, a FerroUI addition, D3).
WinUI's `Document` is the text object model: `RichEditBox::document`.

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

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

### selection_start_property

```rust
fn selection_start_property() -> &'static DirectProperty<RichEditBox, i32>
```



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

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

### selection_end_property

```rust
fn selection_end_property() -> &'static DirectProperty<RichEditBox, i32>
```



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

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

### selected_text_property

```rust
fn selected_text_property() -> &'static DirectProperty<RichEditBox, String>
```



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

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

### is_text_selection_enabled_property

```rust
fn is_text_selection_enabled_property() -> &'static StyledProperty<bool>
```



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

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

### selection_highlight_color_property

```rust
fn selection_highlight_color_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### selection_highlight_color_when_not_focused_property

```rust
fn selection_highlight_color_when_not_focused_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### selection_foreground_brush_property

```rust
fn selection_foreground_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### caret_brush_property

```rust
fn caret_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### letter_spacing_property

```rust
fn letter_spacing_property() -> &'static StyledProperty<f64>
```



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

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

### language_property

```rust
fn language_property() -> &'static StyledProperty<ferroui_base::utilities::Locale>
```



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

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

### text_alignment_property

```rust
fn text_alignment_property() -> &'static StyledProperty<TextAlignment>
```



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

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

### text_wrapping_property

```rust
fn text_wrapping_property() -> &'static StyledProperty<TextWrapping>
```



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

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

### line_height_property

```rust
fn line_height_property() -> &'static StyledProperty<f64>
```



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

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

### text_indent_property

```rust
fn text_indent_property() -> &'static StyledProperty<f64>
```



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

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

### line_stacking_strategy_property

```rust
fn line_stacking_strategy_property() -> &'static StyledProperty<LineStackingStrategy>
```



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

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

### text_decorations_property

```rust
fn text_decorations_property() -> &'static StyledProperty<Option<TextDecorationCollection>>
```



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

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

### is_read_only_property

```rust
fn is_read_only_property() -> &'static StyledProperty<bool>
```



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

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

### accepts_return_property

```rust
fn accepts_return_property() -> &'static StyledProperty<bool>
```



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

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

### accepts_tab_property

```rust
fn accepts_tab_property() -> &'static StyledProperty<bool>
```



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

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

### caret_blink_interval_property

```rust
fn caret_blink_interval_property() -> &'static StyledProperty<Duration>
```



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

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

### max_length_property

```rust
fn max_length_property() -> &'static StyledProperty<i32>
```



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

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

### clipboard_copy_format_property

```rust
fn clipboard_copy_format_property() -> &'static StyledProperty<RichEditClipboardFormat>
```



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

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

### disabled_formatting_accelerators_property

```rust
fn disabled_formatting_accelerators_property() -> &'static StyledProperty<DisabledFormattingAccelerators>
```



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

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

### character_casing_property

```rust
fn character_casing_property() -> &'static StyledProperty<RichEditCharacterCasing>
```



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

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

### is_text_prediction_enabled_property

```rust
fn is_text_prediction_enabled_property() -> &'static StyledProperty<bool>
```



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

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

### input_scope_property

```rust
fn input_scope_property() -> &'static StyledProperty<Option<Ref<InputScope>>>
```



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

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

### placeholder_text_property

```rust
fn placeholder_text_property() -> &'static StyledProperty<String>
```



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

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

### placeholder_foreground_property

```rust
fn placeholder_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### header_property

```rust
fn header_property() -> &'static StyledProperty<Option<BoxedValue>>
```



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

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

### header_template_property

```rust
fn header_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
```



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

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

### description_property

```rust
fn description_property() -> &'static StyledProperty<Option<BoxedValue>>
```



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

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

### is_undo_enabled_property

```rust
fn is_undo_enabled_property() -> &'static StyledProperty<bool>
```



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

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

### undo_limit_property

```rust
fn undo_limit_property() -> &'static StyledProperty<i32>
```



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

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

### can_undo_property

```rust
fn can_undo_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### can_redo_property

```rust
fn can_redo_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### can_copy_property

```rust
fn can_copy_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### can_cut_property

```rust
fn can_cut_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### can_paste_property

```rust
fn can_paste_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### can_format_property

```rust
fn can_format_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### bold_state_property

```rust
fn bold_state_property() -> &'static DirectProperty<RichEditBox, Option<bool>>
```



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

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

### italic_state_property

```rust
fn italic_state_property() -> &'static DirectProperty<RichEditBox, Option<bool>>
```



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

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

### underline_state_property

```rust
fn underline_state_property() -> &'static DirectProperty<RichEditBox, Option<bool>>
```



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

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

### is_bold_property

```rust
fn is_bold_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### is_italic_property

```rust
fn is_italic_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### is_underlined_property

```rust
fn is_underlined_property() -> &'static DirectProperty<RichEditBox, bool>
```



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

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

### text_property

```rust
fn text_property() -> &'static DirectProperty<RichEditBox, String>
```



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

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

### construct

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



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

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

### new

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



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

<a id="assoc_const-template_parts"></a>

### TEMPLATE_PARTS

```rust
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
```



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

<a id="assoc_const-pseudo_classes"></a>

### PSEUDO_CLASSES

```rust
const PSEUDO_CLASSES: PseudoClassesAttribute
```



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

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

### text_presenter

```rust
fn text_presenter(self: &Self) -> Ref<RichEditBoxTextPresenter>
```

The persistent rich document view used by the current control template.

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

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

### content_element

```rust
fn content_element(self: &Self) -> Option<Ref<Control>>
```

The supported content host found in the applied template, if present.

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

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

### rich_document

```rust
fn rich_document(self: &Self) -> RichTextDocument
```

The shared document the editor edits (the property `RichDocument`, D3).

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

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

### set_rich_document

```rust
fn set_rich_document(self: &Self, document: RichTextDocument)
```

Sets the shared document the editor edits.

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

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

### try_set_rich_document

```rust
fn try_set_rich_document(self: &Self, document: RichTextDocument) -> bool
```

Attaches a shared document whose blocks no other view owns.

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

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

### document

```rust
fn document(self: &Self) -> RichEditTextDocument
```

WinUI's `RichEditBox.Document`: the text object model of the content, the same
object `text_document` returns (`docs/porting/winui-rich-text.md`, D3).

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

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

### blocks

```rust
fn blocks(self: &Self) -> BlockCollection
```



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

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

### text_highlighters

```rust
fn text_highlighters(self: &Self) -> TextHighlighterCollection
```



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

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

### selection_start

```rust
fn selection_start(self: &Self) -> usize
```



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

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

### set_selection_start

```rust
fn set_selection_start(self: &Self, value: usize)
```



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

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

### selection_end

```rust
fn selection_end(self: &Self) -> usize
```



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

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

### set_selection_end

```rust
fn set_selection_end(self: &Self, value: usize)
```



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

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

### caret_index

```rust
fn caret_index(self: &Self) -> usize
```



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

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

### select

```rust
fn select(self: &Self, start: usize, end: usize)
```



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

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

### clear_selection

```rust
fn clear_selection(self: &Self)
```



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

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

### selected_text

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



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

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

### selection_changed

```rust
fn selection_changed(self: &Self, handler: impl Fn(&RichTextSelectionChangedEventArgs) -> () + 'static) -> Subscription
```

Adds a handler of the changes of the selection.

Dropping the returned guard removes the handler;
`Subscription::detach` keeps it for the life of the box.

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

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

### is_text_selection_enabled

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



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

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

### set_is_text_selection_enabled

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



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

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

### selection_highlight_color

```rust
fn selection_highlight_color(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_selection_highlight_color

```rust
fn set_selection_highlight_color(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### selection_highlight_color_when_not_focused

```rust
fn selection_highlight_color_when_not_focused(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_selection_highlight_color_when_not_focused

```rust
fn set_selection_highlight_color_when_not_focused(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### selection_foreground_brush

```rust
fn selection_foreground_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_selection_foreground_brush

```rust
fn set_selection_foreground_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### caret_brush

```rust
fn caret_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_caret_brush

```rust
fn set_caret_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### letter_spacing

```rust
fn letter_spacing(self: &Self) -> f64
```



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

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

### language

```rust
fn language(self: &Self) -> ferroui_base::utilities::Locale
```



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

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

### set_language

```rust
fn set_language(self: &Self, value: ferroui_base::utilities::Locale)
```



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

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

### set_letter_spacing

```rust
fn set_letter_spacing(self: &Self, value: f64)
```



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

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

### text_alignment

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



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

<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/FerroUI.Controls/rich_edit_box.rs#L1035)

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

### text_wrapping

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



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

<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/FerroUI.Controls/rich_edit_box.rs#L1041)

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

### line_height

```rust
fn line_height(self: &Self) -> f64
```



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

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

### set_line_height

```rust
fn set_line_height(self: &Self, value: f64)
```



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

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

### text_indent

```rust
fn text_indent(self: &Self) -> f64
```



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

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

### set_text_indent

```rust
fn set_text_indent(self: &Self, value: f64)
```



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

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

### line_stacking_strategy

```rust
fn line_stacking_strategy(self: &Self) -> LineStackingStrategy
```



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

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

### set_line_stacking_strategy

```rust
fn set_line_stacking_strategy(self: &Self, value: LineStackingStrategy)
```



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

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

### text_decorations

```rust
fn text_decorations(self: &Self) -> Option<TextDecorationCollection>
```



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

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

### set_text_decorations

```rust
fn set_text_decorations(self: &Self, value: Option<TextDecorationCollection>)
```



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

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

### cursor_rectangle

```rust
fn cursor_rectangle(self: &Self) -> Rect
```

The caret rectangle in the owning control's coordinate system.
The caret rectangle. While an edit is being published (TextChanging handlers and
the input method run before the view takes the new selection) it is the caret of
the editor, not the view's earlier one (#243 review, N4).

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

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

### get_rect_from_character_index

```rust
fn get_rect_from_character_index(self: &Self, index: usize) -> Rect
```



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

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

### get_rect_from_text_position

```rust
fn get_rect_from_text_position(self: &Self, position: TextPosition) -> Rect
```



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

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

### selection_rects

```rust
fn selection_rects(self: &Self) -> Vec<Rect>
```



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

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

### get_rects_for_range

```rust
fn get_rects_for_range(self: &Self, range: Range<usize>) -> Vec<Rect>
```



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

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

### hit_test_text_position

```rust
fn hit_test_text_position(self: &Self, point: Point) -> usize
```



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

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

### line_metrics

```rust
fn line_metrics(self: &Self) -> Vec<RichTextLineMetrics>
```



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

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

### is_read_only

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



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

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

### set_is_read_only

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



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

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

### caret_blink_interval

```rust
fn caret_blink_interval(self: &Self) -> Duration
```

The framework caret period. Zero or a negative interval keeps the caret steady.

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

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

### set_caret_blink_interval

```rust
fn set_caret_blink_interval(self: &Self, value: Duration)
```



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

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

### accepts_return

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



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

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

### set_accepts_return

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



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

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

### accepts_tab

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



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

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

### set_accepts_tab

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



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

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

### max_length

```rust
fn max_length(self: &Self) -> usize
```



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

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

### set_max_length

```rust
fn set_max_length(self: &Self, value: usize)
```



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

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

### clipboard_copy_format

```rust
fn clipboard_copy_format(self: &Self) -> RichEditClipboardFormat
```



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

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

### set_clipboard_copy_format

```rust
fn set_clipboard_copy_format(self: &Self, value: RichEditClipboardFormat)
```



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

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

### disabled_formatting_accelerators

```rust
fn disabled_formatting_accelerators(self: &Self) -> DisabledFormattingAccelerators
```



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

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

### set_disabled_formatting_accelerators

```rust
fn set_disabled_formatting_accelerators(self: &Self, value: DisabledFormattingAccelerators)
```



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

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

### character_casing

```rust
fn character_casing(self: &Self) -> RichEditCharacterCasing
```



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

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

### set_character_casing

```rust
fn set_character_casing(self: &Self, value: RichEditCharacterCasing)
```



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

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

### is_text_prediction_enabled

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



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

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

### set_is_text_prediction_enabled

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



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

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

### input_scope

```rust
fn input_scope(self: &Self) -> Option<Ref<InputScope>>
```



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

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

### set_input_scope

```rust
fn set_input_scope(self: &Self, value: impl Into<Option<Ref<InputScope>>>)
```



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

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

### placeholder_text

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



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

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

### set_placeholder_text

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



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

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

### placeholder_foreground

```rust
fn placeholder_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_placeholder_foreground

```rust
fn set_placeholder_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### header

```rust
fn header(self: &Self) -> Option<BoxedValue>
```



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

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

### set_header

```rust
fn set_header(self: &Self, value: Option<BoxedValue>)
```



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

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

### header_template

```rust
fn header_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```



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

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

### set_header_template

```rust
fn set_header_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
```



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

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

### description

```rust
fn description(self: &Self) -> Option<BoxedValue>
```



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

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

### set_description

```rust
fn set_description(self: &Self, value: Option<BoxedValue>)
```



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

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

### header_presenter

```rust
fn header_presenter(self: &Self) -> Option<Ref<ContentPresenter>>
```

The framework presenter for header data or a HeaderTemplate.

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

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

### description_presenter

```rust
fn description_presenter(self: &Self) -> Option<Ref<ContentPresenter>>
```



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

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

### placeholder_presenter

```rust
fn placeholder_presenter(self: &Self) -> Option<Ref<TextBlock>>
```



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

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

### is_undo_enabled

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



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

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

### set_is_undo_enabled

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



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

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

### undo_limit

```rust
fn undo_limit(self: &Self) -> usize
```



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

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

### set_undo_limit

```rust
fn set_undo_limit(self: &Self, value: usize)
```



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

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

### can_undo

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



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

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

### can_redo

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



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

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

### can_copy

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



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

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

### can_cut

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



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

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

### can_paste

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



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

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

### text

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



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

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

### text_document

```rust
fn text_document(self: &Self) -> RichEditTextDocument
```

Text-object editing services sharing the view's document, selection, and undo history.

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

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

### set_text

```rust
fn set_text(self: &Self, text: &str) -> Result<(), EditError>
```

Replaces all content programmatically. The public document is not limited by the UI's
input policies. Selection and user undo history are reset after replacement.

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

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

### editor

```rust
fn editor(self: &Self) -> Rc<RichTextEditor>
```



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

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

### caret_visible

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



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

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

### insert_text

```rust
fn insert_text(self: &Self, text: &str) -> Result<bool, EditError>
```



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

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

### replace_selection

```rust
fn replace_selection(self: &Self, fragment: &DocumentSnapshot) -> Result<bool, EditError>
```



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

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

### delete_backward

```rust
fn delete_backward(self: &Self, whole_word: bool) -> Result<bool, EditError>
```



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

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

### delete_forward

```rust
fn delete_forward(self: &Self, whole_word: bool) -> Result<bool, EditError>
```



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

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

### apply_format

```rust
fn apply_format(self: &Self, format: &CharacterFormat) -> Result<(), EditError>
```



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

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

### apply_paragraph_format

```rust
fn apply_paragraph_format(self: &Self, format: &ParagraphFormat) -> Result<(), EditError>
```



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

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

### undo

```rust
fn undo(self: &Self) -> Result<bool, EditError>
```



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

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

### redo

```rust
fn redo(self: &Self) -> Result<bool, EditError>
```



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

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

### select_all

```rust
fn select_all(self: &Self)
```



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

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

### set_preedit_text

```rust
fn set_preedit_text(self: &Self, text: Option<&str>, cursor: Option<usize>) -> Result<(), EditError>
```



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

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

### cancel_composition

```rust
fn cancel_composition(self: &Self) -> Result<bool, EditError>
```



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

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

### commit_composition

```rust
fn commit_composition(self: &Self, text: &str) -> Result<bool, EditError>
```



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

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

### export_rtf

```rust
fn export_rtf(self: &Self) -> Result<String, RtfError>
```



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

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

### import_rtf

```rust
fn import_rtf(self: &Self, bytes: &[u8]) -> Result<(), Box<dyn std::error::Error>>
```



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

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

### copy

```rust
fn copy(self: &Self)
```



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

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

### cut

```rust
fn cut(self: &Self)
```



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

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

### paste

```rust
fn paste(self: &Self)
```



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

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

### copy_to_clipboard_async

```rust
fn copy_to_clipboard_async(self: &Self, clipboard: Rc<dyn IClipboard>, cut: bool) -> LocalBoxFuture<Result<(), ClipboardError>>
```



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

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

### paste_from_clipboard_async

```rust
fn paste_from_clipboard_async(self: &Self, clipboard: Rc<dyn IClipboard>, plain_text_only: bool) -> LocalBoxFuture<Result<(), ClipboardError>>
```



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

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

### edit_failed

```rust
fn edit_failed(self: &Self, handler: impl Fn(&EditError) -> () + 'static) -> Subscription
```

Adds a handler of the edits that failed.

Dropping the returned guard removes the handler;
`Subscription::detach` keeps it for the life of the box.

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

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

### clipboard_failed

```rust
fn clipboard_failed(self: &Self, handler: impl Fn(&ClipboardError) -> () + 'static) -> Subscription
```

Adds a handler of the clipboard operations that failed.

Dropping the returned guard removes the handler;
`Subscription::detach` keeps it for the life of the box.

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

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

### text_input_method_client

```rust
fn text_input_method_client(self: &Self) -> Rc<dyn TextInputMethodClient>
```



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

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

### selection_changed_event

```rust
fn selection_changed_event() -> &'static RoutedEvent<RoutedEventArgs>
```



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

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

### text_changed_event

```rust
fn text_changed_event() -> &'static RoutedEvent<RoutedEventArgs>
```



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

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

### text_changing_event

```rust
fn text_changing_event() -> &'static RoutedEvent<RichEditBoxTextChangingEventArgs>
```



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

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

### selection_changing_event

```rust
fn selection_changing_event() -> &'static RoutedEvent<RichEditBoxSelectionChangingEventArgs>
```



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

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

### copying_to_clipboard_event

```rust
fn copying_to_clipboard_event() -> &'static RoutedEvent<RoutedEventArgs>
```



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

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

### cutting_to_clipboard_event

```rust
fn cutting_to_clipboard_event() -> &'static RoutedEvent<RoutedEventArgs>
```



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

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

### pasting_from_clipboard_event

```rust
fn pasting_from_clipboard_event() -> &'static RoutedEvent<RoutedEventArgs>
```



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

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

### text_composition_started_event

```rust
fn text_composition_started_event() -> &'static RoutedEvent<RichEditCompositionEventArgs>
```



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

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

### text_composition_changed_event

```rust
fn text_composition_changed_event() -> &'static RoutedEvent<RichEditCompositionEventArgs>
```



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

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

### text_composition_ended_event

```rust
fn text_composition_ended_event() -> &'static RoutedEvent<RichEditCompositionEventArgs>
```



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

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

### text_changed

```rust
fn text_changed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```



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

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

### text_changing

```rust
fn text_changing(self: &Self, handler: impl Fn(&Interactive, &RichEditBoxTextChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```



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

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

### selection_changing

```rust
fn selection_changing(self: &Self, handler: impl Fn(&Interactive, &RichEditBoxSelectionChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `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`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<RichEditBox>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- `Drop`
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)

## Availability

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