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
iteratorReserved for internal use.

GradientStopCollection.Count property

Type: int

GradientStopCollection.Item (int) property

Gets the gradient stop by the index.

Type: GradientStop

add(position, color)

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()

removeAt(index)

iterator()

Reserved for internal use.