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)

Syntax

'Declaration
<GuidAttribute("352840A9-AF7D-4CA4-87FC-21C68FDAB3E4")> _
Public Interface Page
'Usage
Dim instance As Page
[GuidAttribute("352840A9-AF7D-4CA4-87FC-21C68FDAB3E4")]
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.

See Also

Reference

Page Members

Microsoft.Office.Interop.Word Namespace