Object Model Reference : Classes : A : Application : Properties : Application.ActiveLayer |
Property ActiveLayer As Layer
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.