Previous Document Next Document

Object Model Reference : Classes : P : Palettes : Properties : Palettes.Item


Palettes.Item

Property Item(IndexOrName As Variant) As Palette

Description

Member of Palettes

The Item property returns the specified Palette object from a Palettes collection. It is the default property of the Palettes class.

The Item property returns a read-only value.

Parameter
Description
IndexOrName
Specifies the item by its index number or name:
 
Index — Specifies the preset placeholder that uniquely identifies each member of the Palettes collection
 
Name — Specifies the string that uniquely identifies each color palette

VBA example

The following VBA example closes the palette that was opened first.

Sub Test()
 Palettes.Item(1).Close
End Sub
Sub Test()
 Palettes("Default CMYK palette").Close
End Sub

 
You can also reference the first-opened palette by using Palettes(1).Close.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.