Viewer.PageIndexToID Property

Visio Viewer

Gets the ID of the page at the specified index in the collection of pages in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.

Version Information
 Version Added:  Visio 2007

Syntax

expression.PageIndexToID(PageIndex)

expression   An expression that returns a Viewer object.

Parameters

Name Required/Optional Data Type Description
PageIndex Required Long The index of the page whose ID you want to get.

Return Value
Long

Remarks

The collection of pages is 1-based, so the index of the first page in the collection is 1.

Example
The following code shows how to get the ID of the page at index position 1 in the collection of pages in the drawing open in the Viewer.

Visual Basic for Applications
  Debug.Print vsoViewer.PageIndexToID(1)