Class BookmarkEditingExtensions
Finds bookmarks and edits the content they span.
public static class BookmarkEditingExtensions
- Inheritance
-
BookmarkEditingExtensions
- Inherited Members
Methods
- Bookmark(DocumentRange, string)
Wraps a range of inlines in a new bookmark with a document-unique id.
- DeleteContent(BookmarkReference)
Deletes the content the bookmark spans, leaving both markers in place so the bookmark survives as an insertion point.
When the markers sit in different paragraphs the paragraphs are joined, which is what deleting a range that crosses a paragraph mark means: the mark is part of the deleted range. The surviving paragraph keeps the start paragraph's own formatting.
- FindBookmark(DomNode, string)
Finds a bookmark by name. Names are compared ordinally, as the format defines them.
- FindBookmarks(DomNode)
Returns every complete bookmark in a subtree, in the order their start markers appear. A start marker with no matching end is skipped: it spans nothing that can be edited.
- Insert(BookmarkReference, IReadOnlyList<Inline>, BookmarkInsertPosition)
Inserts inlines at a bookmark, in order.
- InsertText(BookmarkReference, string, BookmarkInsertPosition, CharacterFormat?)
Inserts a text run at a bookmark.
- ReplaceContent(BookmarkReference, string, CharacterFormat?)
Replaces the content the bookmark spans with a single text run.