Поделиться через


Page.PageID Property (Publisher)

Returns a Long indicating the unique identifier for a page in a publication. Read-only.

Syntax

expression .PageID

expression A variable that represents a Page object.

Remarks

PageID values are random numbers assigned to pages when they are added. These unique numbers do not change when pages are added or deleted. Also, these numbers do not start with 1, nor are they contiguous.

Example

The following example displays the PageIndex, PageNumber, and PageID properties for all the pages in the active publication.

Dim lngLoop As Long 
 
With ActiveDocument.Pages 
 For lngLoop = 1 To .Count 
 With .Item(lngLoop) 
 Debug.Print "PageIndex = " & .PageIndex _ 
 & " / PageNumber = " & .PageNumber _ 
 & " / PageID = " & .PageID 
 End With 
 Next lngLoop 
End With