Sg2.0
SwatchList
Packages

The SwatchList object represents a list of swatches in an Illustrator document as shown in the Swatches palette. SwatchLists are not created through a constructor, they're always accessed through the Document property.

Properties

Read-only.
Returns:
Boolean

Functions

Parameters:
index: Number
Returns:
Object
Parameters:
name: String
Returns:
Object
Parameters:
: Number
: Number
Returns:
ExtendedList
Retrieves a swatch
Parameters:
index: Number - the index of the swatch
Returns:
Retrieves a swatch
Parameters:
name: String - the name of the swatch
Returns:
Returns:
Number