Adobe InCopy CS6 (8.0) Object Model JS: GradientStop

InCopy CS6

Class

GradientStop

 A gradient stop in a gradient.

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Gradient
GradientStop
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
indexnumber readonlyThe index of the GradientStop within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
locationnumber (range: 0 - 100) readonlyThe starting location (as a percentage of the gradient length) of the gradient stop on the gradient. (Range: 0 to 100).
midpointnumber (range: 13 - 87) readonlyThe mid-point (as a percentage of the gradient length) of the gradient stop. (Range: 13 to 87)
parentGradient readonlyThe parent of the GradientStop (a Gradient).
propertiesObject r/wA property that allows setting of several properties at the same time.
stopColorColorMixedInk readonlyThe swatch (color, gradient, tint, or mixed ink) applied to the gradient stop. Can return: MixedInk or Color.

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

Array of GradientStop getElements ()
Resolves the object specifier, creating an array of object references.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

string toSource ()
Generates a string which, if executed, will return the GradientStop.

string toSpecifier ()
Retrieves the object specifier.

Used in:

GradientStop GradientStops.nextItem (obj: GradientStop)

GradientStop GradientStops.previousItem (obj: GradientStop)

Return

Array of GradientStop GradientStop.getElements ()

GradientStop GradientStops.[] (index: number)

GradientStop GradientStops.anyItem ()

Array of GradientStop GradientStops.everyItem ()

GradientStop GradientStops.firstItem ()

GradientStop GradientStops.item (index: varies)

Array of GradientStop GradientStops.itemByRange (from: varies, to: varies)

GradientStop GradientStops.lastItem ()

GradientStop GradientStops.middleItem ()

GradientStop GradientStops.nextItem (obj: GradientStop)

GradientStop GradientStops.previousItem (obj: GradientStop)

Jongware, 29-Apr-2012 v3.0.3iContents :: Index