Method AddHyperlink
- Namespace
- MigraDoc.DocumentObjectModel
- Assembly
- MigraDoc.DocumentObjectModel.dll
AddHyperlink(string)
Adds a new Hyperlink of Type "Local", i.e. the target is a Bookmark within the Document.
public Hyperlink AddHyperlink(string bookmarkName)
Parameters
bookmarkNamestring
Returns
AddHyperlink(string, HyperlinkType)
Adds a new Hyperlink.
public Hyperlink AddHyperlink(string name, HyperlinkType type)
Parameters
namestringtypeHyperlinkType
Returns
AddHyperlink(string, string, HyperlinkTargetWindow)
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
filenamestringThe path to the target document.
bookmarkNamestringThe Named Destination’s name in the target document.
newWindowHyperlinkTargetWindowDefines if the document shall be opened in a new window. If not set, the viewer application should behave in accordance with the current user preference.