Class RichTextDocumentSnapshot
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
Represents an immutable, enumerable view of one rich-text document version.
public sealed class RichTextDocumentSnapshot
- Inheritance
-
RichTextDocumentSnapshot
- Inherited Members
Properties
DefaultCharacterFormat
Gets the declared default character format.
public RichTextCharacterFormat DefaultCharacterFormat { get; }
Property Value
DefaultParagraphFormat
Gets the declared default paragraph format.
public RichTextParagraphFormat DefaultParagraphFormat { get; }
Property Value
Fields
Gets the ordered, non-overlapping fields.
public ImmutableArray<RichTextField> Fields { get; }
Property Value
Images
Gets the ordered inline images.
public ImmutableArray<RichTextImage> Images { get; }
Property Value
Length
Gets the logical UTF-16 text length.
public int Length { get; }
Property Value
Links
Gets the ordered, non-overlapping hyperlinks.
public ImmutableArray<RichTextLink> Links { get; }
Property Value
ListPictures
Gets owned list-marker pictures by ordinal identifier.
public ImmutableDictionary<string, RichTextListPicture> ListPictures { get; }
Property Value
Lists
Gets reusable document-list definitions by document-local ID.
public ImmutableDictionary<RichTextListId, RichTextListDefinition> Lists { get; }
Property Value
Metadata
Gets application metadata by ordinal key.
public ImmutableDictionary<string, string> Metadata { get; }
Property Value
Paragraphs
Gets one normalized entry for every paragraph.
public ImmutableArray<RichTextParagraph> Paragraphs { get; }
Property Value
Revision
Gets the owning document's opaque revision, or an invalid value for a standalone fragment.
public DocumentRevision Revision { get; }
Property Value
RtfText
Gets the canonical RTF representation of this snapshot.
public string RtfText { get; }
Property Value
Runs
Gets the normalized character-format runs.
public ImmutableArray<RichTextRun> Runs { get; }
Property Value
Text
Gets the complete normalized plain text.
public string Text { get; }
Property Value
TextBuffer
Gets the immutable, chunked plain text represented by this rich snapshot.
public TextSnapshot TextBuffer { get; }
Property Value
Version
Gets the document version captured by this snapshot.
public long Version { get; }
Property Value
Methods
GetText(TextSpan)
Reads a bounded UTF-16 range without materializing the whole document.
public string GetText(TextSpan range)
Parameters
rangeTextSpan