Method Bookmark
Bookmark(DocumentRange, string)
Wraps a range of inlines in a new bookmark with a document-unique id.
public static BookmarkReference Bookmark(this DocumentRange range, string name)
Parameters
rangeDocumentRangeThe inline range to bookmark.
namestringThe bookmark name.
Returns
- BookmarkReference
The new bookmark.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The range does not span inlines.