Table of Contents

Method ToBookmark

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

ToBookmark(string, string?)

A link to a bookmark of the same document (w:anchor).

public static HyperlinkTarget ToBookmark(string name, string? tooltip = null)

Parameters

name string

The bookmark name: 1 to MaxBookmarkLength characters, no control characters. The edit that uses the target requires the document to have it.

tooltip string

The tooltip, or null: at most MaxTooltipLength characters, no control characters.

Returns

HyperlinkTarget

The target.

Exceptions

ArgumentNullException

name is null.

ArgumentException

A value is empty, too long or holds a control character.