Table of Contents

Method FindBookmark

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

FindBookmark(DomNode, string)

Finds a bookmark by name. Names are compared ordinally, as the format defines them.

public static BookmarkReference? FindBookmark(this DomNode root, string name)

Parameters

root DomNode

The document or subtree to search.

name string

The bookmark name.

Returns

BookmarkReference

The bookmark, or null when it is not defined or its end marker is missing.

Exceptions

ArgumentNullException

An argument is null.