Table of Contents

Class HyperlinkTarget

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

Where a hyperlink goes: an address (a URI, a mailto: address, a file path) or a bookmark in the same document, with an optional tooltip. Made by ToUri(string, string?) or ToBookmark(string, string?), which check the values; used by the edits of HyperlinkEditingExtensions.

public sealed class HyperlinkTarget
Inheritance
HyperlinkTarget
Inherited Members

Fields

MaxBookmarkLength

The longest bookmark name Word accepts: 40 characters.

MaxTooltipLength

The longest tooltip Word accepts: 255 characters.

MaxUriLength

The longest address accepted: 2083 characters, the classic URL limit Word's dialog shares.

Properties

Bookmark

Gets the bookmark name, or null for a link to an address.

Tooltip

Gets the tooltip (w:tooltip), or null.

Uri

Gets the address, or null for a link to a bookmark.

Methods

ToBookmark(string, string?)

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

ToUri(string, string?)

A link to an address, written as an external relationship of the link's part.