GradientStopCollection
Contents
[
Hide
]GradientStopCollection class
Represents the gradient stop collection.
class GradientStopCollection;
Methods
Method | Description |
---|---|
get(number) | Gets the gradient stop by the index. |
set(GradientStop, number) | Gets the gradient stop by the index. |
add(number, CellsColor, number) | Add a gradient stop. |
add(number, Color, number) | Add a gradient stop. |
getCount() | Gets the number of elements contained in. |
isNull() | Checks whether the implementation object is null. |
get(number)
Gets the gradient stop by the index.
get(index: number) : GradientStop;
Parameters:
Parameter | Type | Description |
---|---|---|
index | number | The index. |
Returns
The gradient stop.
set(GradientStop, number)
Gets the gradient stop by the index.
set(value: GradientStop, index: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | GradientStop | The value to set. |
index | number | The index. |
Returns
The gradient stop.
add(number, CellsColor, number)
Add a gradient stop.
add(position: number, color: CellsColor, alpha: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
position | number | The position of the stop,in unit of percentage. |
color | CellsColor | The color of the stop. |
alpha | number | The alpha of the color. |
add(number, Color, number)
Add a gradient stop.
add(position: number, color: Color, alpha: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
position | number | The position of the stop,in unit of percentage. |
color | Color | The color of the stop. |
alpha | number | The alpha of the color. |
getCount()
Gets the number of elements contained in.
getCount() : number;
isNull()
Checks whether the implementation object is null.
isNull() : boolean;