A collection of swatches.
Go to Property Listing | Method Listing
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
Int |
readonly |
Number of elements in the collection. |
|
|
readonly |
The object's container. |
||
|
readonly |
The class name of the object. |
Swatch add ()
Create a swatch.
Swatch getByName (name:String)
Get the first element in the collection with the provided name.
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
Swatch getSelected ([includeSwatchInGroup:Boolean=Boolean])
Get selected swatches in the document.
|
Parameter |
Type |
Description |
|---|---|---|
|
includeSwatchInGroup |
The selected element should include swatches in group. (default: true) |
undefined removeAll ()
Deletes all elements.
Document.swatches