|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Represents a page number in a header or footer.
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
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.