Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 81
ColorSamplers
The collection of ColorSampler objects in a document. Access through the Document.colorSamplers
collection property. For example:
app.activeDocument.colorSamplers.removeAll()
Properties
Methods
Property Value type What it is
length
number
Read-only. The number of elements in the
ColorSamplers collection.
parent
Document
Read-only. The containing document.
typename
string
Read-only. The class name of the referenced
ColorSamplers object.
Method Parameter type Returns What it does
add
(position)
array of UnitValue
ColorSampler
Creates a new color sampler object
and adds it to this collection.
The
position parameter (x,y)
represents the new horizontal and
vertical locations of the moved color
sampler.
removeAll
()
Removes all ColorSampler objects
from the
ColorSamplers collection.