Table of contents
TOC
折叠目录
展开目录

Viewer.FollowHyperlink 方法 (Visio Viewer)Viewer.FollowHyperlink Method (Visio Viewer)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

遵循 Microsoft Visio Viewer 中指定形状中的指定索引处的超链接。Follows the hyperlink at the specified index in the specified shape in Microsoft Visio Viewer.

语法Syntax

表达式FollowHyperlink( ShapeIndexHyperlinkIndex)expression. FollowHyperlink( ShapeIndex, HyperlinkIndex)

_expression_An 表达式,该表达式返回一个查看器_expression_An expression that returns a Viewer object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
ShapeIndexShapeIndex必需RequiredLongLong包含超链接的形状的索引。The index of the shape that contains the hyperlink.
HyperlinkIndexHyperlinkIndex必需RequiredLongLong超链接中指定的形状的超链接集合中的索引。The index of the hyperlink in the collection of hyperlinks in the specified shape.

返回值Return Value

Nothing

注解Remarks

超链接的集合是一开始的因此集合中的第一个超链接位于索引位置 1。如果您为 HyperlinkIndex 传递 0,Visio Viewer 定位到默认超链接的形状,在超链接对话框 (插入菜单) 中设置当前的 Visio 文档中。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

下面的代码在 Visio Viewer 的页上遵循中第一个形状的超链接集合中的第一个索引位置的超链接。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