Share via


Page Interface 

Represents a page in a document. Use the Page object and the related methods and properties for programmatically defining page layout in a document.

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

Usage

Public Class ageImplementation
    Implements Page
End Class
Dim ageImplementation1 As New ageImplementation()

Syntax

Public Interface Page
public interface Page
public interface class Page
public interface Page
public interface Page

Remarks

Use the Item method to access a specific page in a document.

To access the page number, use the Information property of a Range or Selection object, or the PageIndex property of a Break object that belongs to the Breaks collection of the specified Page object.

The Top and Left properties of the Page object always return 0 (zero) indicating the upper left corner of the page. The Height and Width properties return the height and width in points (72 points = 1 inch) of the paper size specified in the Page Setup dialog or through the PageSetup object. For example, for an 8-1/2 by 11 inch page in portrait mode, the Height property returns 792 and the Width property returns 612. All four of these properties are read-only.

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

Page Members