Understanding the CorelDRAW object model : Working with pages |
Each page, or Page object, is a member of the Document.Pages collection for the document in which it appears. The pages in a Document.Pages collection appear in the order in which they appear in that document for example, the fifth page in the active document is ActiveDocument.Pages.Item(5)
. If pages are added, reordered, or deleted, the affected Pages collection is immediately updated to reflect the new page order of that document.
CorelDRAW provides a number of properties, methods, and events for working with pages, the most useful of which are listed in the following table.
Class
|
Member
|
Description
|
---|---|---|
Application
|
ActivePage property
|
Provides direct access to the active page of the active document
For more information, see Activating pages.
|
Application
|
PageSizes property
|
Contains the collection of defined page sizes for the application
For more information, see Using defined page sizes.
|
Document
|
ActivePage property
|
Provides direct access to the active page of a document
For more information, see Activating pages.
|
Document
|
AddPages method
or AddPagesEx method |
Adds blank pages to the end of a document
For more information, see Creating pages.
|
Document
|
InsertPages method
or InsertPagesEx method |
Inserts pages at the specified location in a document
For more information, see Creating pages.
|
Document
|
MasterPage property
|
Specifies the default page size
For more information, see Specifying the default page size.
|
Document
|
PageActivate event
|
Is triggered when a page is activated
For more information, see Activating pages.
|
Document
|
PageChange event
|
Is triggered when a page is deactivated
For more information, see Activating pages.
|
Document
|
PageCreate event
|
Is triggered when a page is created
For more information, see Creating pages.
|
Document
|
PageDelete event
|
Is triggered when a page is deleted
For more information, see Deleting pages.
|
Document
|
Pages property
|
Contains the collection of pages for a document
For more information, see Activating pages.
|
Page
|
Activate method
|
Activates a page
For more information, see Activating pages.
|
Page
|
Delete method
|
Deletes a page
For more information, see Deleting pages.
|
Page
|
MoveTo method
|
Moves a page to the specified location in a document
For more information, see Reordering pages.
|
Page
|
SetSize method
|
Sets the size of a page
For more information, see Specifying the size and orientation of pages.
|
PageSize
|
BuiltIn property
|
Returns True if a page size is built-in (rather than user-defined)
For more information, see Using defined page sizes.
|
PageSize
|
Delete method
|
Deletes a user-defined page size
For more information, see Using defined page sizes.
|
PageSize
|
Height property
|
Specifies the height of a defined page size
For more information, see Using defined page sizes.
|
PageSize
|
Name property
|
Specifies the name of a defined page size
For more information, see Using defined page sizes.
|
PageSize
|
Width property
|
Specifies the width of a defined page size
For more information, see Using defined page sizes.
|
• |
For detailed information on any property, method, or event, see the Object Model Reference.
|
For more information on page-related activities, see the following subtopics:
• |
• |
• |
• |
• |
• |
Copyright 2013 Corel Corporation. All rights reserved.