Share via


MasterPages.Item Property

Publisher Developer ReferencePublisher Developer Reference

Returns the specified Page object from a Pages or MasterPages collection. Read-only.

Syntax

expression.Item(Item)

expression   A variable that represents a MasterPages object.

Parameters

Name Required/Optional Data Type Description
Item Required Long The number of the page to return. For MasterPages collections, Item can either be 1 or 2 for the left and right master pages, respectively. For Pages collections, Item corresponds to a Page object's PageIndex property.

Example

This example displays the page number, page index, and page ID of the first page in the active publication.

Visual Basic for Applications
  With ActiveDocument.Pages.Item(1)
    Debug.Print "Page number = " & .PageNumber
    Debug.Print "Page index = " & .PageIndex
    Debug.Print "Page ID = " & .PageID
End With

See Also