Table of Contents

Class RichTextDocumentFragment

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Represents immutable rich content being transferred as one bounded fragment.

public sealed class RichTextDocumentFragment
Inheritance
RichTextDocumentFragment
Inherited Members

Properties

RtfText

Gets the fragment's canonical RTF representation.

public string RtfText { get; }

Property Value

string

Snapshot

Gets the immutable rich document snapshot.

public RichTextDocumentSnapshot Snapshot { get; }

Property Value

RichTextDocumentSnapshot

Text

Gets the fragment's logical plain text.

public string Text { get; }

Property Value

string

Methods

FromPlainText(string?)

Creates a plain-text fragment.

public static RichTextDocumentFragment FromPlainText(string? text)

Parameters

text string

The text to include.

Returns

RichTextDocumentFragment

An immutable plain-text fragment.

FromRtf(string)

Creates a rich fragment from canonical RTF.

public static RichTextDocumentFragment FromRtf(string rtfText)

Parameters

rtfText string

The RTF value to parse.

Returns

RichTextDocumentFragment

A validated immutable fragment.