Table of Contents

Class RichTextLayoutSnapshot

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Immutable visible-layout metadata. Queries against stale or foreign captures return no result.

public sealed class RichTextLayoutSnapshot
Inheritance
RichTextLayoutSnapshot
Inherited Members

Properties

DocumentRevision

Gets the captured source-document revision.

public DocumentRevision DocumentRevision { get; }

Property Value

DocumentRevision

IsProvisional

Gets whether positions address this view's provisional composition text.

public bool IsProvisional { get; }

Property Value

bool

LayoutVersion

Gets the layout generation, independent of source history.

public long LayoutVersion { get; }

Property Value

long

Lines

Gets visible native line fragments. No native objects are retained.

public IReadOnlyList<RichTextVisualLine> Lines { get; }

Property Value

IReadOnlyList<RichTextVisualLine>

SourceLength

Gets the UTF-16 length of the text addressed by this layout.

public int SourceLength { get; }

Property Value

int

TextViewport

Gets the viewport excluding padding and reserved margins.

public Rect TextViewport { get; }

Property Value

Rect

Viewport

Gets the visible editor rectangle in device-independent units.

public Rect Viewport { get; }

Property Value

Rect