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)

Syntax

'Declaration
<GuidAttribute("00020987-0000-0000-C000-000000000046")> _
Public Interface PageNumber
'Usage
Dim instance As PageNumber
[GuidAttribute("00020987-0000-0000-C000-000000000046")]
public interface PageNumber

Remarks

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.

See Also

Reference

PageNumber Members

Microsoft.Office.Interop.Word Namespace