# RichTextBlock

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

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

```rust
struct RichTextBlock
```

Displays paragraphs, nested spans, hyperlinks and embedded controls. All text
indices are UTF-16 code units, matching the shaping and input-method contracts.

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

## Members

- [`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)
- [`render_text`](#function-render_text)
- [`caret_visible`](#function-caret_visible)
- [`allow_hyperlink_navigation`](#function-allow_hyperlink_navigation)
- [`on_selection_changing`](#function-on_selection_changing)
- [`request_selection_change`](#function-request_selection_change)
- [`rebase_selection_on_document_change`](#function-rebase_selection_on_document_change)
- [`text_insets`](#function-text_insets)
- [`text_layout_constraint`](#function-text_layout_constraint)
- [`default_incremental_tab`](#function-default_incremental_tab)
- [`text_origin`](#function-text_origin)
- [`selection_is_visible`](#function-selection_is_visible)
- [`selection_render_brush`](#function-selection_render_brush)
- [`raise_selection_changed_event`](#function-raise_selection_changed_event)
- [`text_focus_target`](#function-text_focus_target)
- [`text_background_bounds`](#function-text_background_bounds)
- [`additional_visual_children`](#function-additional_visual_children)
- [`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_foreground_brush_property`](#function-selection_foreground_brush_property)
- [`caret_brush_property`](#function-caret_brush_property)
- [`background_property`](#function-background_property)
- [`padding_property`](#function-padding_property)
- [`font_family_property`](#function-font_family_property)
- [`font_size_property`](#function-font_size_property)
- [`font_style_property`](#function-font_style_property)
- [`font_weight_property`](#function-font_weight_property)
- [`font_stretch_property`](#function-font_stretch_property)
- [`font_features_property`](#function-font_features_property)
- [`language_property`](#function-language_property)
- [`foreground_property`](#function-foreground_property)
- [`letter_spacing_property`](#function-letter_spacing_property)
- [`text_alignment_property`](#function-text_alignment_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_line_bounds_property`](#function-text_line_bounds_property)
- [`text_decorations_property`](#function-text_decorations_property)
- [`text_trimming_property`](#function-text_trimming_property)
- [`text_wrapping_property`](#function-text_wrapping_property)
- [`max_lines_property`](#function-max_lines_property)
- [`overflow_content_target_property`](#function-overflow_content_target_property)
- [`has_overflow_content_property`](#function-has_overflow_content_property)
- [`baseline_offset_property`](#function-baseline_offset_property)
- [`is_text_trimmed_property`](#function-is_text_trimmed_property)
- [`selection_changed_event`](#function-selection_changed_event)
- [`is_text_trimmed_changed_event`](#function-is_text_trimmed_changed_event)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`rich_document`](#function-rich_document)
- [`set_rich_document`](#function-set_rich_document)
- [`try_set_rich_document`](#function-try_set_rich_document)
- [`document`](#function-document)
- [`set_document`](#function-set_document)
- [`try_set_document`](#function-try_set_document)
- [`blocks`](#function-blocks)
- [`text_highlighters`](#function-text_highlighters)
- [`add_child`](#function-add_child)
- [`text`](#function-text)
- [`selection_start`](#function-selection_start)
- [`selection_end`](#function-selection_end)
- [`caret_index`](#function-caret_index)
- [`set_selection_start`](#function-set_selection_start)
- [`set_selection_end`](#function-set_selection_end)
- [`select`](#function-select)
- [`selection_changed`](#function-selection_changed)
- [`selected_text`](#function-selected_text)
- [`select_all`](#function-select_all)
- [`clear_selection`](#function-clear_selection)
- [`can_copy`](#function-can_copy)
- [`hyperlink_at`](#function-hyperlink_at)
- [`copy`](#function-copy)
- [`export_rtf`](#function-export_rtf)
- [`hit_test_text_position`](#function-hit_test_text_position)
- [`get_rect_from_character_index`](#function-get_rect_from_character_index)
- [`get_rect_from_text_position`](#function-get_rect_from_text_position)
- [`text_view_for_position`](#function-text_view_for_position)
- [`cursor_rectangle`](#function-cursor_rectangle)
- [`selection_rects`](#function-selection_rects)
- [`get_rects_for_range`](#function-get_rects_for_range)
- [`line_metrics`](#function-line_metrics)
- [`visible_text_ranges`](#function-visible_text_ranges)
- [`is_text_trimmed`](#function-is_text_trimmed)
- [`baseline_offset`](#function-baseline_offset)
- [`has_overflow_content`](#function-has_overflow_content)
- [`content_start`](#function-content_start)
- [`content_end`](#function-content_end)
- [`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_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)
- [`background`](#function-background)
- [`set_background`](#function-set_background)
- [`padding`](#function-padding)
- [`set_padding`](#function-set_padding)
- [`font_family`](#function-font_family)
- [`set_font_family`](#function-set_font_family)
- [`font_size`](#function-font_size)
- [`set_font_size`](#function-set_font_size)
- [`font_style`](#function-font_style)
- [`set_font_style`](#function-set_font_style)
- [`font_weight`](#function-font_weight)
- [`set_font_weight`](#function-set_font_weight)
- [`font_stretch`](#function-font_stretch)
- [`set_font_stretch`](#function-set_font_stretch)
- [`font_features`](#function-font_features)
- [`language`](#function-language)
- [`set_language`](#function-set_language)
- [`set_font_features`](#function-set_font_features)
- [`foreground`](#function-foreground)
- [`set_foreground`](#function-set_foreground)
- [`letter_spacing`](#function-letter_spacing)
- [`set_letter_spacing`](#function-set_letter_spacing)
- [`text_alignment`](#function-text_alignment)
- [`set_text_alignment`](#function-set_text_alignment)
- [`horizontal_text_alignment`](#function-horizontal_text_alignment)
- [`set_horizontal_text_alignment`](#function-set_horizontal_text_alignment)
- [`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_line_bounds`](#function-text_line_bounds)
- [`set_text_line_bounds`](#function-set_text_line_bounds)
- [`text_decorations`](#function-text_decorations)
- [`set_text_decorations`](#function-set_text_decorations)
- [`text_trimming`](#function-text_trimming)
- [`set_text_trimming`](#function-set_text_trimming)
- [`line_height`](#function-line_height)
- [`set_line_height`](#function-set_line_height)
- [`text_wrapping`](#function-text_wrapping)
- [`set_text_wrapping`](#function-set_text_wrapping)
- [`max_lines`](#function-max_lines)
- [`set_max_lines`](#function-set_max_lines)
- [`overflow_content_target`](#function-overflow_content_target)
- [`try_set_overflow_content_target`](#function-try_set_overflow_content_target)
- [`set_overflow_content_target`](#function-set_overflow_content_target)

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

### context_menu_opening_event

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

Raised synchronously before this view opens a configured context
menu or flyout. `Handled` cancels the associated request.

Native overflow views do not raise this event for the modern
context-flyout path. Their configured flyout still opens at the
requesting overflow, including one inherited from the master.

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

<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_text_context_menu.rs#L60)

<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_text_block.rs#L99)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### render_text

```rust
fn render_text(self: &Self, context: &mut DrawingContext<'_>)
```

Paints text content after the background and selection highlights.

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

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

### caret_visible

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

Whether the insertion caret is visible (editable views override this).

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

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

### allow_hyperlink_navigation

```rust
fn allow_hyperlink_navigation(self: &Self, modifiers: KeyModifiers) -> bool
```

Whether pointer input activates a hyperlink or edits its text.

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

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

### on_selection_changing

```rust
fn on_selection_changing(self: &Self, args: &RichTextSelectionChangedEventArgs) -> bool
```

Runs synchronously while the proposed selection is visible to readers.
Returning false cancels it unless a handler selected a different range.

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

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

### request_selection_change

```rust
fn request_selection_change(self: &Self, start: usize, end: usize) -> bool
```

Lets an editable view arbitrate a normalized selection through its editor.

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

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

### rebase_selection_on_document_change

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

Editors publish their final transaction selection after document changes.

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

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

### text_insets

```rust
fn text_insets(self: &Self) -> Thickness
```

Space outside the document's formatted text, including editor adornments.

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

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

### text_layout_constraint

```rust
fn text_layout_constraint(self: &Self, available_size: Size) -> Size
```

The formatter constraint, independent of a scrollable view's viewport.

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

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

### default_incremental_tab

```rust
fn default_incremental_tab(self: &Self, font_size: f64) -> f64
```

Implicit tab interval for a paragraph without an assigned override.

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

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

### text_origin

```rust
fn text_origin(self: &Self) -> Point
```

Shared origin for text, inline controls, caret, selection and hit testing.

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

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

### selection_is_visible

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

Whether the selection is currently drawn in this view (its highlight, and the
selection foreground of the selected text).

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

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

### selection_render_brush

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

The selection background after the host's focus policy is applied.

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

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

### raise_selection_changed_event

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

Publishes the selection event on the owning control.

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

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

### text_focus_target

```rust
fn text_focus_target(self: &Self) -> Ref<InputElement>
```

The keyboard focus target for pointer interaction with text.

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

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

### text_background_bounds

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

Bounds painted by the document background; editor headers are outside it.

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

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

### additional_visual_children

```rust
fn additional_visual_children(self: &Self) -> Vec<Ref<Visual>>
```

Native framework visuals displayed beside the document's inline controls.

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

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

### rich_document_property

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

The shared document the view shows: a FerroUI addition (WinUI's RichTextBlock
has only `Blocks`), named `RichDocument` so that it never reads as the text
object model `RichEditBox.Document` is (`docs/porting/winui-rich-text.md`, D3).

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

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

### selection_start_property

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



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

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

### selection_end_property

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



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

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

### selected_text_property

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



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

<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_text_block.rs#L814)

<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_text_block.rs#L814)

<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_text_block.rs#L814)

<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_text_block.rs#L814)

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

### background_property

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



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

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

### padding_property

```rust
fn padding_property() -> &'static StyledProperty<Thickness>
```



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

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

### font_family_property

```rust
fn font_family_property() -> &'static StyledProperty<FontFamily>
```



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

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

### font_size_property

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



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

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

### font_style_property

```rust
fn font_style_property() -> &'static StyledProperty<FontStyle>
```



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

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

### font_weight_property

```rust
fn font_weight_property() -> &'static StyledProperty<FontWeight>
```



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

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

### font_stretch_property

```rust
fn font_stretch_property() -> &'static StyledProperty<FontStretch>
```



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

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

### font_features_property

```rust
fn font_features_property() -> &'static StyledProperty<Option<FontFeatureCollection>>
```



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

<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_text_block.rs#L814)

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

### foreground_property

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



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

<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_text_block.rs#L814)

<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_text_block.rs#L814)

<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_text_block.rs#L814)

<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_text_block.rs#L814)

<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_text_block.rs#L814)

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

### text_line_bounds_property

```rust
fn text_line_bounds_property() -> &'static StyledProperty<TextLineBounds>
```



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

<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_text_block.rs#L814)

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

### text_trimming_property

```rust
fn text_trimming_property() -> &'static StyledProperty<Rc<dyn TextTrimming>>
```



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

<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_text_block.rs#L814)

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

### max_lines_property

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



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

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

### overflow_content_target_property

```rust
fn overflow_content_target_property() -> &'static StyledProperty<Option<ElementRef<RichTextBlockOverflow>>>
```



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

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

### has_overflow_content_property

```rust
fn has_overflow_content_property() -> &'static DirectProperty<RichTextBlock, bool>
```



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

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

### baseline_offset_property

```rust
fn baseline_offset_property() -> &'static DirectProperty<RichTextBlock, f64>
```



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

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

### is_text_trimmed_property

```rust
fn is_text_trimmed_property() -> &'static DirectProperty<RichTextBlock, bool>
```



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

<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_text_block.rs#L887)

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

### is_text_trimmed_changed_event

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



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

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

### construct

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



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

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

### new

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



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

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

### rich_document

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

The shared document of the view (the property `RichDocument`, D3).

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

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

### set_rich_document

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

Sets the shared document of the view (the property `RichDocument`, D3).

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

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

### try_set_rich_document

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

Attaches a shared document whose blocks no other view owns; see `try_set_document`.

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

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

### document

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



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

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

### set_document

```rust
fn set_document(self: &Self, value: RichTextDocument)
```



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

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

### try_set_document

```rust
fn try_set_document(self: &Self, value: RichTextDocument) -> bool
```

Attaches a document whose block elements are not owned by another view.
Use an overflow target to share a view's document, or restore a snapshot
into another document to make an independent view.

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

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

### blocks

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



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

<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_text_block.rs#L1106)

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

### add_child

```rust
fn add_child(self: &Self, block: impl IntoRef<Block>)
```



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

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

### text

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



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

<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_text_block.rs#L1205)

<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_text_block.rs#L1216)

<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_text_block.rs#L1224)

<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_text_block.rs#L1227)

<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_text_block.rs#L1230)

<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_text_block.rs#L1234)

<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 block.

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

<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_text_block.rs#L1344)

<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_text_block.rs#L1349)

<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_text_block.rs#L1352)

<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_text_block.rs#L1355)

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

### hyperlink_at

```rust
fn hyperlink_at(self: &Self, point: Point) -> Option<Ref<Hyperlink>>
```

Finds a hyperlink inside rendered content, excluding blank padding.

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

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

### copy

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



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

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

### export_rtf

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

Exports using the same resolved tab intervals as this view and its overflow
chain. RTF has one document-wide default interval, so paragraphs resolving
to different intervals return an unsupported-feature error.

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

<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_text_block.rs#L1468)

<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_text_block.rs#L1473)

<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
```

Gets a caret rectangle at the leading or trailing character edge of the
same UTF-16 insertion position. Affinity matters at a bidi run boundary.

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

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

### text_view_for_position

```rust
fn text_view_for_position(self: &Self, index: usize) -> Option<Ref<RichTextBlock>>
```

Finds the view containing a document insertion position. A terminal
insertion point belongs to the final column; an off-page position has no
view until enough overflow columns are linked and laid out.

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

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

### cursor_rectangle

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



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

<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_text_block.rs#L1518)

<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>
```

Gets the visible bounds of a UTF-16 range without changing selection.
Invalid or empty ranges have no rectangles. Overflow views return only
the rectangles within their own formatted page.

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

<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_text_block.rs#L1539)

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

### visible_text_ranges

```rust
fn visible_text_ranges(self: &Self) -> Vec<Range<usize>>
```

Source ranges retained in this formatted page, excluding collapsed text
represented by an ellipsis. Ancestor viewports may clip these further.

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

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

### is_text_trimmed

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



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

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

### baseline_offset

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



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

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

### has_overflow_content

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



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

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

### content_start

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



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

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

### content_end

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



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

<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_text_block.rs#L1569)

<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_text_block.rs#L1572)

<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_text_block.rs#L1575)

<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_text_block.rs#L1578)

<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_text_block.rs#L1581)

<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_text_block.rs#L1584)

<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_text_block.rs#L1587)

<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_text_block.rs#L1590)

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

### background

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



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

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

### set_background

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



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

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

### padding

```rust
fn padding(self: &Self) -> Thickness
```



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

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

### set_padding

```rust
fn set_padding(self: &Self, value: Thickness)
```



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

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

### font_family

```rust
fn font_family(self: &Self) -> FontFamily
```



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

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

### set_font_family

```rust
fn set_font_family(self: &Self, value: FontFamily)
```



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

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

### font_size

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



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

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

### set_font_size

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



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

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

### font_style

```rust
fn font_style(self: &Self) -> FontStyle
```



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

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

### set_font_style

```rust
fn set_font_style(self: &Self, value: FontStyle)
```



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

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

### font_weight

```rust
fn font_weight(self: &Self) -> FontWeight
```



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

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

### set_font_weight

```rust
fn set_font_weight(self: &Self, value: FontWeight)
```



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

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

### font_stretch

```rust
fn font_stretch(self: &Self) -> FontStretch
```



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

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

### set_font_stretch

```rust
fn set_font_stretch(self: &Self, value: FontStretch)
```



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

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

### font_features

```rust
fn font_features(self: &Self) -> Option<FontFeatureCollection>
```



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

<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_text_block.rs#L1638)

<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_text_block.rs#L1641)

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

### set_font_features

```rust
fn set_font_features(self: &Self, value: Option<FontFeatureCollection>)
```



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

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

### foreground

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



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

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

### set_foreground

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



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

<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_text_block.rs#L1653)

<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_text_block.rs#L1656)

<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_text_block.rs#L1659)

<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_text_block.rs#L1662)

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

### horizontal_text_alignment

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



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

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

### set_horizontal_text_alignment

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



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

<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_text_block.rs#L1671)

<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_text_block.rs#L1674)

<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_text_block.rs#L1677)

<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_text_block.rs#L1680)

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

### text_line_bounds

```rust
fn text_line_bounds(self: &Self) -> TextLineBounds
```

The shared formatter's bounds policy for every line in this document.
The value is inherited from the framework's TextBlock attached property.

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

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

### set_text_line_bounds

```rust
fn set_text_line_bounds(self: &Self, value: TextLineBounds)
```



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

<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_text_block.rs#L1703)

<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_text_block.rs#L1706)

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

### text_trimming

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



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

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

### set_text_trimming

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



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

<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_text_block.rs#L1715)

<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_text_block.rs#L1718)

<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_text_block.rs#L1721)

<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_text_block.rs#L1724)

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

### max_lines

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



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

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

### set_max_lines

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



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

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

### overflow_content_target

```rust
fn overflow_content_target(self: &Self) -> Option<Ref<RichTextBlockOverflow>>
```



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

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

### try_set_overflow_content_target

```rust
fn try_set_overflow_content_target(self: &Self, target: Option<Ref<RichTextBlockOverflow>>) -> bool
```

Links an overflow view. Cycles and a target already owned by another view
are rejected without changing either chain.

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

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

### set_overflow_content_target

```rust
fn set_overflow_content_target(self: &Self, target: Option<Ref<RichTextBlockOverflow>>)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`RichTextBlockImplExt`](/docs/0.5.0/api/ferroui-controls/trait-richtextblockimplext/)
- `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<RichTextBlock>`](/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/)
- [`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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`RichTextBlockImpl`](/docs/0.5.0/api/ferroui-controls/trait-richtextblockimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- `Drop`

## Availability

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