ComponentOne VSView 8.0
AddLink Method

Adds a hyperlink to the document.

Syntax

AddLink(LinkText As String, LinkTarget As String, Formatted As Boolean)

Remarks

LinkText is the text that will be displayed in the document.

LinkTarget is a URL (for example, "http://www.componentone.com") or local reference (for example, "#myTarget") that defines the link target (destination).

Formatted defines whether the text should be automatically formatted to look like an HTML link (underlined and rendered in blue).

If the AutoLinkNavigate property is set to true, moving the mouse over hyperlinks will change the mouse pointer into a hand, and clicking it will either open the link target in a new window or bring the target into view.

If you add links to local references, make sure you add the link target to the document using the AddLinkTarget method.

Hyperlinks are automatically exported to PDF and HTML.

Note: Internally, hyperlinks are represented as custom tags with the following format: "%PDFLink|<linkTarget>". If the linkTarget starts with a pound sign "#" then the link is a local reference, otherwise it is a URL or file name. If you want, you can create links using the StartTag and EndTag methods to add tags using the specified format.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback