Table of Contents

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

content RichDocumentSnapshot

Properties

Content

Gets the fragment's immutable structured content.

public RichDocumentSnapshot Content { get; }

Property Value

RichDocumentSnapshot

Methods

FromPlainText(string)

Creates semantic paragraphs and soft breaks from plain clipboard text.

public static RichDocumentFragment FromPlainText(string text)

Parameters

text string

Returns

RichDocumentFragment

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

snapshot RichDocumentSnapshot
selection RichSelection

Returns

RichDocumentFragment