Viewer.ShapeIndexToID Property
Visio Viewer |
Gets the ID of the shape at the specified index position in the collection of shapes in the drawing that is open in the Microsoft Office Visio 2007 Viewer. Read-only.
Version Information
Version Added: Visio 2007
Syntax
expression.ShapeIndexToID(ShapeIndex)
expression An expression that returns a Viewer object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
ShapeIndex | Required | Long | The index position of the shape in the collection of shapes. |
Return Value
Long
Remarks
The collection of shapes in the Viewer is 1-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 open in the Viewer.
Visual Basic for Applications |
---|
|