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
Snapshot
Gets the immutable rich document snapshot.
public RichTextDocumentSnapshot Snapshot { get; }
Property Value
Text
Gets the fragment's logical plain text.
public string Text { get; }
Property Value
Methods
FromPlainText(string?)
Creates a plain-text fragment.
public static RichTextDocumentFragment FromPlainText(string? text)
Parameters
textstringThe 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
rtfTextstringThe RTF value to parse.
Returns
- RichTextDocumentFragment
A validated immutable fragment.