Previous Document Next Document

Object Model Reference : Classes : T : TrapLayers : Properties : TrapLayers.Item


TrapLayers.Item

Property Item(Index As Long) As TrapLayer

Description

Member of TrapLayers

The Item property returns a read-only reference to a specified plate in a TrapLayers collection.

Parameter
Description
Index
Specifies the preset placeholder that uniquely identifies each member of the TrapLayers collection

VBA example

The following VBA example displays a list of all 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 2013 Corel Corporation. All rights reserved.