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
Methods
CreateDecorationLayer(int)
Creates a decoration layer. Higher priorities override lower priorities; ties follow creation order.
public RichEditorDecorationLayer CreateDecorationLayer(int priority = 0)
Parameters
priorityint
Returns
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
createFunc<RichEditorWidget, View>recycleAction<RichEditorWidget, View>