GradientStopCollection

GradientStopCollection class

Represents the gradient stop collection.

Properties

NameTypeDescription
CountNumber
Item (int)GradientStopGets the gradient stop by the index.

Methods

NameDescription
addAdd a gradient stop.
clear
removeAt
iterator
getReserved for internal use.
containsReserved for internal use.
indexOfReserved for internal use.

GradientStopCollection.Count property

Type: Number

GradientStopCollection.Item (int) property

Gets the gradient stop by the index.

Type: GradientStop

add(position, color, alpha) (1 of 3)

Add a gradient stop.

ParameterTypeDescription
positionNumberThe position of the stop,in unit of percentage.
colorCellsColorThe color of the stop.
alphaNumberThe alpha of the color.

add(position, color, alpha) (2 of 3)

Add a gradient stop.

ParameterTypeDescription
positionNumberThe position of the stop,in unit of percentage.
colorColorThe color of the stop.
alphaNumberThe alpha of the color.

add(value) (3 of 3)

Reserved for internal use.

clear()

removeAt(index)

iterator()

get(index)

Reserved for internal use.

contains(value)

Reserved for internal use.

indexOf(value)

Reserved for internal use.