GetPageInfo
Document.GetPageInfo method
Gets the page size, orientation and other information about a page that might be useful for printing or rendering.
public PageInfo GetPageInfo(int pageIndex)
Parameter | Type | Description |
---|---|---|
pageIndex | Int32 | The 0-based page index. |
Examples
Shows how to check whether the page is in color or not.
Document doc = new Document(MyDir + "Document.docx");
// Check that the first page of the document is not colored.
Assert.IsFalse(doc.GetPageInfo(0).Colored);
See Also
- class PageInfo
- class Document
- namespace Aspose.Words
- assembly Aspose.Words