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

Viewer.ShapeIndexToID Property (Visio Viewer)

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

Gets the ID of the shape at the specified index position in the collection of shapes in the drawing that is open in Microsoft Visio Viewer. Read-only.

Syntax

expression. ShapeIndexToID( ShapeIndex)

_expression_An expression that returns a Viewer object.

Parameters

NameRequired/OptionalData TypeDescription
ShapeIndexRequiredLongThe index position of the shape in the collection of shapes.

Return Value

Long

Remarks

The collection of shapes in Visio Viewer is one-based, so the first shape in the collection is at index position 1.

Example

The following code gets the ID of all the shapes in the drawing that is open in Visio Viewer.

Dim intCounter As Integer

    For intCounter = 1 To Viewer1.ShapeCount

    Debug.Print Viewer1.ShapeIndexToID(intCounter)

Next intCounter

© 2018 Microsoft