Previous Document Next Document

Understanding the CorelDRAW object model : Working with layers : Creating layers


Creating layers

You can create a layer by using the Page.CreateLayer method. Creating a layer inserts a new layer at the top of the list of non-master layers.

The following VBA code creates a new layer called “My New Layer”:

ActivePage.CreateLayer "My New Layer"

If you want, you can use event handlers to respond to events that are triggered by activating a layer:

 
Document.LayerCreate

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.