Previous Document Next Document

Understanding the CorelDRAW object model : Understanding the object-model hierarchy


Understanding the object-model hierarchy

The main structure of the CorelDRAW object model can be summarized as follows:

 
The Application object contains a Documents collection of all open Document objects. When a CorelDRAW document is created or opened, a corresponding Document object is added to the Documents collection for the Application object.
 
Each Document object contains a Pages collection of all the Page objects (or “pages”) in that document.
 
Each Page object contains a Layers collection of all the Layer objects (or “layers”) on that page.
 
Each Layer object contains a Shapes collection of all the Shape objects (or “shapes”) on that layer.

In addition, the object model contains a set of filter objects, which provide support for files from other technical-graphics applications. Import filters are governed by the Layer class, while export filters are governed by the Document class.

 
For a visual representation of the object model, please see the object-model diagram at X:\Program Files\Corel\<folder>\Data (where X: is the drive and <folder> is the folder where the software is installed):
CorelDRAW Object Model Diagram.pdf

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.