Previous Document Next Document
Document.ActiveLayer

Property ActiveLayer As Layer

Member of Document

The ActiveLayer property represents the active layer of the current document.

The ActiveLayer property returns a read-only value.

The following code example moves all selected shapes to the active layer.

Sub Test() 
 ActiveDocument.Selection.Layer = ActiveDocument.ActiveLayer 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.