Class RichTextAdornment
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
A view attached to a UTF-16 source position, outside the document and its history.
public sealed class RichTextAdornment : IDisposable
- Inheritance
-
RichTextAdornment
- Implements
- Inherited Members
Properties
CreatedView
Gets the currently created content without invoking its factory. Offscreen data-backed widgets can return null after recycling.
public View? CreatedView { get; }
Property Value
Key
Gets the stable key supplied by a widget source, or null for an explicitly attached view.
public string? Key { get; }
Property Value
Options
Gets or sets the placement, sizing, and insertion-affinity options.
public RichTextAdornmentOptions Options { get; set; }
Property Value
Position
Gets the current source position, tracking edits with the configured insertion affinity.
public int Position { get; }
Property Value
View
Gets the application-owned content, creating a data-backed widget on explicit access if necessary.
public View View { get; }
Property Value
Remarks
Use CreatedView to inspect realization without invoking a factory.
Methods
Dispose()
Removes the adornment. Calling this more than once has no effect.
public void Dispose()