Method ToBookmark
ToBookmark(string, string?)
A link to a bookmark of the same document (w:anchor).
public static HyperlinkTarget ToBookmark(string name, string? tooltip = null)
Parameters
namestringThe bookmark name: 1 to MaxBookmarkLength characters, no control characters. The edit that uses the target requires the document to have it.
tooltipstringThe tooltip, or null: at most MaxTooltipLength characters, no control characters.
Returns
- HyperlinkTarget
The target.
Exceptions
- ArgumentNullException
nameis null.- ArgumentException
A value is empty, too long or holds a control character.