Previous Document Next Document

Object Model Reference : Classes : P : Page : Properties : Page.ActiveLayer


Page.ActiveLayer

Property ActiveLayer As Layer

Description

Member of Page

The ActiveLayer property returns the active layer of a specified page.

The ActiveLayer property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.