PageNumber PageNumber PageNumber Interface


Represents a page number in a header or footer.

public interface class PageNumber
public interface PageNumber
Public Interface 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(Object, Object) method to add a page number (a PAGE field) to a header or footer.


Alignment Alignment Alignment

Returns or sets a WdPageNumberAlignment constant that represents the alignment for the page number.

Application Application Application

Returns a Application object that represents the Microsoft Word application.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Index Index Index

Returns an Integer that represents the position of an item in a collection.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.


Copy() Copy() Copy()

Copies the specified object to the Clipboard.

Cut() Cut() Cut()

Removes the specified object from the document and places it on the Clipboard.

Delete() Delete() Delete()

Deletes the specified object.

Select() Select() Select()

Selects the specified object.

Applies to