Previous Document Next Document
SeparationPlates.Item

Property Item(Index As Long) As SeparationPlate

Member of SeparationPlates

The Item property returns a SeparationPlate value that represents the given color separation plate in the collection.

The Item property is the default property and its reference can be omitted when referencing items in the collection. For example, SeparationPlates.Item(2) is the same as SeparationPlates(2) — they both reference the second segment object in the SeparationPlates collection.

The Item property returns a read-only value.

Parameters
Description
Index
Specifies the separation plate by its index number

The following code example lists the colors of the separation plates in the collection:

Sub Test() 
 Dim strPlates As String 
 Dim Plate As SeparationPlate 
 Dim intPlateCounter As Integer 
 With ActiveDocument.PrintSettings.Separations 
  For intPlateCounter = 1 To .Plates.Count - 1 
   If .Plates(intPlateCounter).Enabled = True Then 
    strPlates = strPlates & .Plates(intPlateCounter).Color & vbCr 
   End If 
  Next intPlateCounter 
  MsgBox strPlates 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.