OpacityGradientStops

A collection of opacity gradient stops.

Methods

OpacityGradientStopadd ([withProperties:
Object])
Creates a new OpacityGradientStop.

Parameter Type Description
withProperties Object Initial values for properties of the new OpacityGradientStop (Optional)

OpacityGradientStopanyItem ()
Returns any OpacityGradientStop in the collection.

number count ()
Displays the number of elements in the OpacityGradientStop.

Array of OpacityGradientStopeveryItem ()
Returns every OpacityGradientStop in the collection.

OpacityGradientStopfirstItem ()
Returns the first OpacityGradientStop in the collection.

OpacityGradientStopitem (index:
any)
Returns the OpacityGradientStop with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

OpacityGradientStopitemByName (name:
string)
Returns the OpacityGradientStop with the specified name.

Parameter Type Description
name string The name.

Array of OpacityGradientStopitemByRange (from:
any, to:
any)
Returns the OpacityGradientStops within the specified range.

Parameter Type Description
from OpacityGradientStop
Long Integer
String
The OpacityGradientStop, index, or name at the beginning of the range. Can accept: OpacityGradientStop, Long Integer or String.
to OpacityGradientStop
Long Integer
String
The OpacityGradientStop, index, or name at the end of the range. Can accept: OpacityGradientStop, Long Integer or String.

OpacityGradientStoplastItem ()
Returns the last OpacityGradientStop in the collection.

OpacityGradientStopmiddleItem ()
Returns the middle OpacityGradientStop in the collection.

OpacityGradientStopnextItem (obj:
OpacityGradientStop)
Returns the OpacityGradientStop whose index follows the specified OpacityGradientStop in the collection.

Parameter Type Description
obj OpacityGradientStop The OpacityGradientStop whose index comes before the desired OpacityGradientStop.

OpacityGradientStoppreviousItem (obj:
OpacityGradientStop)
Returns the OpacityGradientStop with the index previous to the specified index.

Parameter Type Description
obj OpacityGradientStop The index of the OpacityGradientStop that follows the desired OpacityGradientStop.

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

Element of:

GradientFeatherSetting.opacityGradientStops

Leave a Comment

Previous post:

Next post: