Indesign Scripting Reference
home | search | Links
JavaScript >> Colors

Colors

A collection of colors.

Colors Properties

Property Type Access Description
item Object read Returns the color with the specified index or name.
length Long read The number of colors in the collection.

Colors Methods

Method Returns Description
add Color Create a new color.
anyItem Object Returns any color.
firstItem Object Returns the first color.
itemByID Object Returns the color with the specified ID.
itemByRange Objects Returns the colors within the specified range.
lastItem Object Returns the last color.
middleItem Object Returns the middle color.
nextItem Object Returns the next color.
previousItem Object Returns the previous color.