This documentation is archived and is not being maintained.

PageNumber Interface

Represents a page number in a header or footer.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

<GuidAttribute("00020987-0000-0000-C000-000000000046")> _
Public Interface PageNumber
Dim instance As PageNumber

The PageNumber object is a member of the PageNumbers collection. The PageNumbers collection includes all the page numbers in a single header or footer.

Use PageNumbers(index), where index is the index number, to return a single PageNumber object. In most cases, a header or footer will contain only one page number, which is index number 1.

Use the Add method to add a page number (a PAGE field) to a header or footer.