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
Number count()
Displays the number of elements in the ColorGroupSwatch.
ColorGroupSwatch item( Mixed index )
Returns the ColorGroupSwatch with the specified index or name.
Parameters
ColorGroupSwatch itemByID( Number id )
Returns the ColorGroupSwatch with the specified ID.
Parameters
ColorGroupSwatch itemByRange( Mixed from, Mixed to )
Returns the ColorGroupSwatches within the specified range.
Parameters
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
ColorGroupSwatch nextItem( ColorGroupSwatch obj )
Returns the ColorGroupSwatch whose index follows the specified ColorGroupSwatch in the collection.
Parameters
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.