ColorOpacityGradientStops

A collection of opacity gradient stops.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

add(
[withProperties])
 → OpacityGradientStop
count(
)
 → number
item(
index)
 → OpacityGradientStop
itemByRange(
from, to)
 → OpacityGradientStop
toSource(
)
 → string
add(
[withProperties])
 → OpacityGradientStop
Creates a new OpacityGradientStop.
withProperties Object Initial values for properties of the new OpacityGradientStop (Optional)
anyItem(
)
 → OpacityGradientStop
Returns any OpacityGradientStop in the collection.
count(
)
 → number
Displays the number of elements in the OpacityGradientStop.
everyItem(
)
 → OpacityGradientStop
Returns every OpacityGradientStop in the collection.
firstItem(
)
 → OpacityGradientStop
Returns the first OpacityGradientStop in the collection.
item(
index)
 → OpacityGradientStop
Returns the OpacityGradientStop with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByRange(
from, to)
 → OpacityGradientStop
Returns the OpacityGradientStops within the specified range.
from The OpacityGradientStop, index, or name at the beginning of the range. Can accept: OpacityGradientStop, Long Integer or String.
to The OpacityGradientStop, index, or name at the end of the range. Can accept: OpacityGradientStop, Long Integer or String.
lastItem(
)
 → OpacityGradientStop
Returns the last OpacityGradientStop in the collection.
middleItem(
)
 → OpacityGradientStop
Returns the middle OpacityGradientStop in the collection.
nextItem(
obj)
 → OpacityGradientStop
Returns the OpacityGradientStop whose index follows the specified OpacityGradientStop in the collection.
obj OpacityGradientStop The OpacityGradientStop whose index comes before the desired OpacityGradientStop.
previousItem(
obj)
 → OpacityGradientStop
Returns the OpacityGradientStop with the index previous to the specified index.
obj OpacityGradientStop The index of the OpacityGradientStop that follows the desired OpacityGradientStop.
toSource(
)
 → string
Generates a string which, if executed, will return the OpacityGradientStop.