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