Table of Contents

Class RichEditorPresentation

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Owns typed, nonpersistent presentation for one rich editor. Use on the editor dispatcher.

public sealed class RichEditorPresentation
Inheritance
RichEditorPresentation
Inherited Members

Remarks

Anchors follow structural address maps. Removing an anchored paragraph drops its presentation; undo does not resurrect dropped presentation. Replacing the document clears every producer.

Properties

MarginWidth

Gets or sets the reserved left margin in each native text surface, in device-independent units.

public double MarginWidth { get; set; }

Property Value

double

Methods

CreateDecorationLayer(int)

Creates a decoration layer. Higher priorities override lower priorities; ties follow creation order.

public RichEditorDecorationLayer CreateDecorationLayer(int priority = 0)

Parameters

priority int

Returns

RichEditorDecorationLayer

CreateWidgetSource(Func<RichEditorWidget, View>, Action<RichEditorWidget, View>?)

Creates a lazy widget producer. Native reservations and visible child views use the containing text surface.

public RichEditorWidgetSource CreateWidgetSource(Func<RichEditorWidget, View> create, Action<RichEditorWidget, View>? recycle = null)

Parameters

create Func<RichEditorWidget, View>
recycle Action<RichEditorWidget, View>

Returns

RichEditorWidgetSource