Edit

Share via


PageNumber Interface

Definition

Represents a page number in a header or footer.

public interface class PageNumber
[System.Runtime.InteropServices.Guid("00020987-0000-0000-C000-000000000046")]
public interface PageNumber
type PageNumber = interface
Public Interface PageNumber
Attributes

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

Properties

Alignment

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

Application

Returns a Application object that represents the Microsoft Word application.

Creator

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

Index

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

Parent

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

Methods

Copy()

Copies the specified object to the Clipboard.

Cut()

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

Delete()

Deletes the specified object.

Select()

Selects the specified object.

Applies to