Table of contents
TOC
Collapse the table of content
Expand the table of content

Viewer.FollowHyperlink Method (Visio Viewer)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Follows the hyperlink at the specified index in the specified shape in Microsoft Visio Viewer.

Syntax

expression. FollowHyperlink( ShapeIndex, HyperlinkIndex)

_expression_An expression that returns a Viewer object.

Parameters

NameRequired/OptionalData TypeDescription
ShapeIndexRequiredLongThe index of the shape that contains the hyperlink.
HyperlinkIndexRequiredLongThe index of the hyperlink in the collection of hyperlinks in the specified shape.

Return Value

Nothing

Remarks

The collection of hyperlinks is one-based, so the first hyperlink in the collection is at index position 1. If you pass 0 for HyperlinkIndex, Visio Viewer navigates to the default hyperlink for the shape, as set in the Hyperlinks dialog box ( Insert menu) in the current Visio document.

Example

The following code follows the hyperlink in the first index position in the collection of hyperlinks in the first shape on the page in Visio Viewer.

vsoViewer.FollowHyperlink 1, 1
© 2018 Microsoft