Object Model Reference : Classes : P : Page : Properties : Page.ActiveLayer |
Property ActiveLayer As Layer
Member of Page
The ActiveLayer property returns the active layer of a specified page.
The ActiveLayer property returns a read-only value.
The following VBA example places page numbers on each page of the document.
Sub Test() |
Dim p As Page |
For Each p In ActiveDocument.Pages |
p.ActiveLayer.CreateArtisticText 0, 0, "Page " & p.Index |
Next p |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.