Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.