Illustrator29
Collection of Swatch

Swatches

A collection of swatches.

Properties

NameType AccessDescription
Int readonly Number of elements in the collection.
The readonly The object's container.
String readonly The class name of the object.

Methods

Swatch

Create a swatch.

Swatch

Get the first element in the collection with the provided name.

name String
Swatch[]

Get selected swatches in the document.

includeSwatchInGroup? Boolean The selected element should include swatches in group.
void

Deletes all elements.

Object of 1

Properties elsewhere that hold a Swatches.