PageNumbers Interface 

A collection of PageNumber objects that represent the page numbers in a single header or footer.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class ageNumbersImplementation
    Implements PageNumbers
End Class
Dim ageNumbersImplementation1 As New ageNumbersImplementation()

Syntax

Public Interface PageNumbers
    Inherits IEnumerable
public interface PageNumbers : IEnumerable
public interface class PageNumbers : public IEnumerable
public interface PageNumbers implements IEnumerable
public interface PageNumbers implements IEnumerable

Remarks

Use the PageNumbers property to return the PageNumbers collection.

Use the Add method to add page numbers to a header or footer.

To add or change page numbers in a document with multiple sections, modify the page numbers in each section or set the LinkToPrevious property to True.

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

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

PageNumbers Members