Table of Contents

Class RichTextDecorations

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Manages view-owned decorations without changing document versions, events, persistence, or undo history.

public sealed class RichTextDecorations
Inheritance
RichTextDecorations
Inherited Members

Remarks

Use on the editor's UI thread. Ranges move with document edits; replacing the document clears all layers.

Properties

Version

Gets the presentation revision, independent of the document version.

public long Version { get; }

Property Value

long

Methods

CreateLayer(int)

Creates an empty layer with explicit priority; equal priorities compose in creation order.

public RichTextDecorationLayer CreateLayer(int priority = 0)

Parameters

priority int

Higher values take precedence over lower values.

Returns

RichTextDecorationLayer

A layer that can be replaced, cleared, or disposed independently.

Events

Changed

Occurs when layers are changed, remapped by an edit, or cleared by document replacement.

public event EventHandler? Changed

Event Type

EventHandler