Class RichReviewView
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
A selectable native, read-only original or final projection of a rich document.
public sealed class RichReviewView : ContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
- Inheritance
-
RichReviewView
- Implements
- Inherited Members
Remarks
The source document owns all changes and history. The private native renderer receives a derived snapshot with editing and history disabled. Accept or reject through the source document.
Constructors
RichReviewView()
Creates a native review surface over an empty source document.
public RichReviewView()
Fields
ModeProperty
Identifies the original or final review state.
public static readonly BindableProperty ModeProperty
Field Value
SourceProperty
Identifies the canonical source document.
public static readonly BindableProperty SourceProperty
Field Value
Properties
FontFamily
Gets or sets a fallback font family for unresolved authored text.
public string? FontFamily { get; set; }
Property Value
FontSize
Gets or sets a fallback font size in points.
public double? FontSize { get; set; }
Property Value
Mode
Gets or sets the read-only review state.
public RichReviewMode Mode { get; set; }
Property Value
Projection
Gets the displayed projection and its canonical address maps.
public RichReviewProjection Projection { get; }
Property Value
Selection
Gets or sets selection in the displayed projection's rich coordinates.
public RichSelection Selection { get; set; }
Property Value
Source
Gets or sets the canonical document. Review refreshes never change this document's saved state or history.
public RichDocument Source { get; set; }
Property Value
TextColor
Gets or sets a fallback text color.
public Color? TextColor { get; set; }
Property Value
TextLayout
Gets native geometry for the displayed review state.
public RichEditorLayout TextLayout { get; }
Property Value
Methods
CopyAsync()
Copies displayed content through the RTF clipboard path with ordinary text fallback.
public Task CopyAsync()
Returns
Focus()
Focuses the native selectable review surface.
public bool Focus()
Returns
Refresh()
Synchronously captures the latest source revision. Source changes also queue a coalesced refresh.
public void Refresh()
SelectAll()
Selects all displayed body content.
public void SelectAll()
Events
ProjectionChanged
Occurs after the review snapshot and native rendering source have been replaced.
public event EventHandler? ProjectionChanged
Event Type
SelectionChanged
Occurs when the displayed projection's selection changes.
public event EventHandler? SelectionChanged