Table of Contents

Method Bookmark

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

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

range DocumentRange

The inline range to bookmark.

name string

The bookmark name.

Returns

BookmarkReference

The new bookmark.

Exceptions

ArgumentNullException

An argument is null.

ArgumentException

The range does not span inlines.