Previous Document Next Document

Object Model Reference : Classes : L : Layer : Properties : Layer.Index


Layer.Index

Property Index As Long

Description

Member of Layer

The Index property returns the index number of a layer within a Layers collection.

The Index property returns a read-only value.

VBA example

The following VBA example adds a text string named Layer: and the index number of each layer to the lower-left corner of each layer in the active page.

Sub Test()
 Dim l As Layer
 For Each l In ActivePage.Layers
  l.CreateArtisticText 0, 0, "Layer:" & l.Index, , , 10
 Next l
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.