Class RichDocumentFragment
- Namespace
- RichEdit.Core
- Assembly
- RichEdit.Core.dll
A self-contained immutable rich slice. Its interchange representation is ordinary RTF.
public sealed class RichDocumentFragment
- Inheritance
-
RichDocumentFragment
- Inherited Members
Constructors
RichDocumentFragment(RichDocumentSnapshot)
Adopts immutable content as a fragment; no history or view state is captured.
public RichDocumentFragment(RichDocumentSnapshot content)
Parameters
contentRichDocumentSnapshot
Properties
Content
Gets the fragment's immutable structured content.
public RichDocumentSnapshot Content { get; }
Property Value
Methods
FromPlainText(string)
Creates semantic paragraphs and soft breaks from plain clipboard text.
public static RichDocumentFragment FromPlainText(string text)
Parameters
textstring
Returns
FromSelection(RichDocumentSnapshot, RichSelection)
Copies text, an object, or an expanded table-cell rectangle with its styles, referenced images, and fully contained annotations.
public static RichDocumentFragment FromSelection(RichDocumentSnapshot snapshot, RichSelection selection)
Parameters
snapshotRichDocumentSnapshotselectionRichSelection