Previous Document Next Document

Understanding the CorelDRAW object model : Working with layers


Working with layers

Layers are invisible planes that let you organize the objects on a page. You can group related objects into layers, and you can change the vertical order (or “stacking order”) of those layers to change the appearance of the page. Master layers apply to all pages in a document, while local layers apply to a single page.

Each layer, or Layer object, is a member of the Page.Layers collection for the page on which it appears. The layers in a Page.Layers collection appear in the order in which they appear on that page — the first layer is the one at the top of the “stack,” and the last layer is the one at the bottom. If layers are added, reordered, or deleted, the affected Page.Layers collection is immediately updated to reflect the new layer order of that page.

CorelDRAW provides a number of properties, methods, and events for working with layers, the most useful of which are listed in the following table.

Class
Member
Description
Document
ActiveLayer property
Provides direct access to the active layer for a document
For more information, see Activating layers.
Document
LayerActivate event
Is triggered when a layer is activated
For more information, see Activating layers.
Document
LayerChange event
Is triggered when a layer is deactivated
For more information, see Activating layers.
Document
LayerCreate event
Is triggered when a layer is created
For more information, see Creating layers.
Document
LayerDelete event
Is triggered when a layer is deleted
For more information, see Deleting layers.
Layer
Activate method
Activates a layer
For more information, see Activating layers.
Layer
Delete method
Deletes a layer
For more information, see Deleting layers.
Layer
Editable property
Controls whether a layer is editable
For information, see Locking and hiding layers.
Layer
Import method
or
ImportEx method
Imports a file into a layer
For information, see Importing files into layers.
Layer
MoveAbove method
or
MoveBelow method
Moves a layer
For information, see Reordering layers.
Layer
Name property
Specifies the name of a layer
For information, see Renaming layers.
Layer
Visible property
Controls whether the contents of a layer are visible
For information, see Locking and hiding layers.
Page
ActiveLayer property
Provides direct access to the active layer for a page
For more information, see Activating layers.
Page
CreateLayer method
Inserts a new layer at the top of the list of non-master layers
For more information, see Creating layers.
Page
Layers property
Contains the collection of layers for a page
For more information, see Activating layers.

 
For detailed information on any property, method, or event, see the Object Model Reference.
In this topic

For more information on layer-related activities, see the following subtopics:

 
 
 
 
 
 
 

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.