Table of Contents

Method AddHyperlink

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

Adds a new Hyperlink of Type "Local", i.e. the target is a Bookmark within the Document.

public Hyperlink AddHyperlink(string bookmarkName)

Parameters

bookmarkName string

Returns

Hyperlink

Adds a new Hyperlink.

public Hyperlink AddHyperlink(string name, HyperlinkType type)

Parameters

name string
type HyperlinkType

Returns

Hyperlink

Adds a new Hyperlink of Type "ExternalBookmark", i.e. the target is a Bookmark in an external PDF Document.

public Hyperlink AddHyperlink(string filename, string bookmarkName, HyperlinkTargetWindow newWindow = HyperlinkTargetWindow.UserPreference)

Parameters

filename string

The path to the target document.

bookmarkName string

The Named Destination’s name in the target document.

newWindow HyperlinkTargetWindow

Defines if the HyperlinkType ExternalBookmark shall be opened in a new window. If not set, the viewer application should behave in accordance with the current user preference.

Returns

Hyperlink