Edit in GitHubLog an issue

ColorGroupSwatches

A collection of color group swatches.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

ColorGroupSwatch add( Swatch swatchItemRef, Object withProperties )

Adds a color group swatch.

Parameters

TypeNameDescription
Swatch
swatchItemRef
swatch to be added to color group
Object
withProperties
Initial values for properties of the new ColorGroupSwatch (Optional)

Number count()

Displays the number of elements in the ColorGroupSwatch.


ColorGroupSwatch item( Mixed index )

Returns the ColorGroupSwatch with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

ColorGroupSwatch itemByID( Number id )

Returns the ColorGroupSwatch with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

ColorGroupSwatch itemByRange( Mixed from, Mixed to )

Returns the ColorGroupSwatches within the specified range.

Parameters

TypeNameDescription
Mixed
from
The ColorGroupSwatch, index, or name at the beginning of the range. Can accept: ColorGroupSwatch, Long Integer or String.
Mixed
to
The ColorGroupSwatch, index, or name at the end of the range. Can accept: ColorGroupSwatch, Long Integer or String.

ColorGroupSwatch firstItem()

Returns the first ColorGroupSwatch in the collection.


ColorGroupSwatch lastItem()

Returns the last ColorGroupSwatch in the collection.


ColorGroupSwatch middleItem()

Returns the middle ColorGroupSwatch in the collection.


ColorGroupSwatch previousItem( ColorGroupSwatch obj )

Returns the ColorGroupSwatch with the index previous to the specified index.

Parameters

TypeNameDescription
ColorGroupSwatch
obj
The index of the ColorGroupSwatch that follows the desired ColorGroupSwatch.

ColorGroupSwatch nextItem( ColorGroupSwatch obj )

Returns the ColorGroupSwatch whose index follows the specified ColorGroupSwatch in the collection.

Parameters

TypeNameDescription
ColorGroupSwatch
obj
The ColorGroupSwatch whose index comes before the desired ColorGroupSwatch.

ColorGroupSwatch anyItem()

Returns any ColorGroupSwatch in the collection.


ColorGroupSwatch everyItem()

Returns every ColorGroupSwatch in the collection.


String toSource()

Generates a string which, if executed, will return the ColorGroupSwatch.


ColorGroupSwatch []( Number index )

Returns the ColorGroupSwatch with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.