GradientStopCollection

GradientStopCollection class

Represents the gradient stop collection.

Properties

NameTypeDescription
Countint
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: int

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
positionfloatThe position of the stop,in unit of percentage.
colorCellsColorThe color of the stop.
alphaintThe alpha of the color.

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

Add a gradient stop.

ParameterTypeDescription
positionfloatThe position of the stop,in unit of percentage.
colorColorThe color of the stop.
alphaintThe 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.