Adobe Illustrator CS5 Type Library JS: Swatches

Illustrator CS5

Class

Swatches

 A collection of swatches.

QuickLinks

add, getByName, getSelected, removeAll

Hierarchy

Object
Swatches

Properties

PropertyTypeAccessDescription
lengthint readonlyNumber of elements in the collection.
parentObject readonlyThe object's container.
typenamestring readonlyThe class name of the object.

Methods

Class

Swatch add ()
Create a swatch.

Instances

Swatch getByName (name: string)
Get the first element in the collection with the provided name.

ParameterTypeDescription
namestring

Array of Swatch getSelected ()
Get selected swatches in the document.

void removeAll ()
Deletes all elements.

Element of

Document.swatches

Jongware, 27-Jun-2010 v3.0.3dContents :: Index