Previous Document Next Document
TrapLayers.Item

Property Item(Index As Long) As TrapLayer

Member of TrapLayers

The Item property returns a reference to the specified plate in the collection.

The Item property returns a read-only value.

Parameters
Description
Index
Specifies the plate by its index number

The following code example displays a list of all of the trap layers in the collection:

Sub Test() 
 Dim intCounter As Integer 
 Dim s As String 
 With ActiveDocument.PrintSettings.Trapping 
  For intCounter = 1 To .Layers.Count - 1 
   s = s & .Layers.Item(intCounter).Color & vbCr 
  Next intCounter 
 End With 
 MsgBox s 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.