![]() |
![]() |
What is an object model?
An object model represents the hierarchy of objects within an application and their relationship to each other within the structure.
In CorelDRAW, the Application object represents the top of the object hierarchy, the program itself. Starting with the Application object, you can drill down and navigate through the object model until you find the desired and usually more specific object. To reference an object in a macro, you separate each level of the object hierarchy with the dot operator ( . ).
For example, Application.ActiveDocument
references the Document object, but it separates the Document class from the Application class by using the dot operator. It is important to note that you do not need to reference the Application object when accessing objects in the object model of CorelDRAW.
A diagram of the object model of CorelDRAW is provided for your reference. You can find it in the folder X:\Program Files\Corel\CorelDRAW Graphics Suite X4\Programs where X corresponds to the drive where you installed CorelDRAW Graphics Suite X4, and where Program Files\Corel\CorelDRAW Graphics Suite X4\Programs corresponds to the path where you installed CorelDRAW Graphics Suite X4.
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.