Table of Contents

Method AppendInternalHyperlink

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

Appends a hyperlink to a bookmark in the same document. No package relationship is involved: an internal link names its target bookmark directly.

public static HyperlinkStart AppendInternalHyperlink(this Paragraph paragraph, string text, string anchor, CharacterFormat? format = null, string? tooltip = null)

Parameters

paragraph Paragraph

The paragraph.

text string

The link text.

anchor string

The target bookmark name.

format CharacterFormat

The run formatting of the link text, or null.

tooltip string

The tooltip text, or null.

Returns

HyperlinkStart

The appended hyperlink start marker.

Exceptions

ArgumentNullException

A required argument is null.