Previous Document Next Document

Object Model Reference : Classes : A : Application : Properties : Application.ActiveLayer


Application.ActiveLayer

Property ActiveLayer As Layer

Description

Member of Application

The ActiveLayer property returns the active Layer on the active page in the active document.

The ActiveLayer property returns a read-only value.

VBA example

The following VBA example creates an ellipse on the active layer in the current document.

Sub LayerActive()
 ActiveLayer.CreateEllipse 3, 3, 2, 1
 ActiveDocument.Selection.Shapes(1).Fill.UniformColor.CMYKAssign 100, 0, 100, 0
 'Fills the ellipse green
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.