A gradient stop in a gradient.
Go to Property Listing | Method Listing
remove, toSource, getElements, toSpecifier, addEventListener, removeEventListener
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
index |
readonly |
The index of the GradientStop within its containing object. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
location |
Number (range 0 - 100) |
read/write |
The starting location (as a percentage of the gradient length) of the gradient stop on the gradient. (Range: 0 to 100). |
|
midpoint |
Number (range 13 - 87) |
read/write |
The mid-point (as a percentage of the gradient length) of the gradient stop. (Range: 13 to 87) |
|
parent |
readonly |
The parent of the GradientStop (a Gradient). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
stopColor |
read/write |
The swatch (color, gradient, tint, or mixed ink) applied to the gradient stop. Can return: MixedInk or Color. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
GradientStop getElements ()
Resolves the object specifier, creating an array of object references.
undefined remove ()
Deletes the GradientStop.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the GradientStop.
String toSpecifier ()
Retrieves the object specifier.