GradientStopCollection

GradientStopCollection class

Represents the gradient stop collection.

Methods

NameDescription
add(position, color, alpha)Add a gradient stop.
clear()
get(index)Gets the gradient stop by the index.
getCount()
iterator()Reserved for internal use.
removeAt()
set(index)Gets the gradient stop by the index.

add(position, color, alpha)

Add a gradient stop.

ParameterTypeDescription
positionDoubleValueThe position of the stop,in unit of percentage.
colorColorValueThe color of the stop.
alphaThe alpha of the color.

clear()

get(index)

Gets the gradient stop by the index.

ParameterTypeDescription
indexNumberThe index.

Returns: GradientStop — GradientStop The gradient stop.

getCount()

iterator()

Reserved for internal use.

removeAt()

set(index)

Gets the gradient stop by the index.

ParameterTypeDescription
indexNumberThe index.

Returns: GradientStop — GradientStop The gradient stop.