Table of Contents

Class BookmarkReference

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

A located bookmark: its two markers and the content they span.

The pair is what makes a bookmark editable. The markers are ordinary inlines, they need not sit in the same paragraph, and a bookmark whose markers are adjacent spans nothing at all — the degenerate case a naive "replace the content" implementation silently turns into a no-op or an exception.

public sealed class BookmarkReference
Inheritance
BookmarkReference
Inherited Members
Extension Methods

Properties

End

Gets the end marker.

EndParagraph

Gets the paragraph holding the end marker.

IsEmpty

Gets a value indicating whether the bookmark spans no content at all — the markers are adjacent, which is what Word writes for an insertion point.

IsWithinOneParagraph

Gets a value indicating whether the markers sit in the same paragraph.

Name

Gets the bookmark name.

Start

Gets the start marker.

StartParagraph

Gets the paragraph holding the start marker.

Methods

GetText(RevisionView)

Extracts the text the bookmark spans, with the same rules as GetText(DomNode, RevisionView).