PageNumber PageNumber 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
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 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.

Methods

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