Page Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a page in a document. Use the Page object and the related methods and properties for programmatically defining page layout in a document.
public interface class Page
[System.Runtime.InteropServices.Guid("352840A9-AF7D-4CA4-87FC-21C68FDAB3E4")]
public interface Page
type Page = interface
Public Interface Page
- Attributes
Remarks
Use the Item[Int32] method to access a specific page in a document.
To access the page number, use the Information[WdInformation] 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.
Properties
Application |
Returns a Application object that represents the Microsoft Word application. |
Breaks |
Returns a Breaks collection that represents the breaks on a page. The Breaks collection includes page, column, and section breaks. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. |
EnhMetaFileBits |
Returns a Object that represents a picture representation of how a page of text appears. Read-only. |
Height |
The Height property returns the height in points (72 points = 1 inch) of the paper size specified in the Page Setup dialog or through the PageSetup object. |
Left |
Returns 0 (zero) indicating the upper left corner of the page. |
Parent |
Returns an object that represents the parent object of the specified object. |
Rectangles |
Returns a Rectangles collection that represents a portion of text or graphics in a page in a document. |
Top |
Returns 0 (zero) indicating the upper left corner of the page. |
Width |
Returns the width in points (72 points = 1 inch) of the paper size specified in the Page Setup dialog or through the PageSetup object. |
Methods
SaveAsPNG(String) |
This object or member is deprecated and is not intended to be used in your code. |