API Documentation
>
CorelDRAW
>
2025-v26
>
Document
>
IVGDocument
Document.ActiveLayer property
Returns the active layer of the current document
Syntax:
Property
Get
ActiveLayer
(
)
As
Layer
Remarks:
The
ActiveLayer
property represents the active layer of the current document.
Examples:
The following VBA example moves all selected shapes to the active layer.
Sub Test() ActiveDocument.Selection.Layer = ActiveDocument.ActiveLayer End Sub