GradientStopCollection
Contents
[
Hide
]GradientStopCollection class
Represents the gradient stop collection.
Properties
| Name | Type | Description |
|---|---|---|
| Count | int | |
| Item (int) | GradientStop | Gets the gradient stop by the index. |
Methods
| Name | Description |
|---|---|
| add | Add a gradient stop. |
| clear | |
| removeAt | |
| iterator | |
| get | Reserved for internal use. |
| contains | Reserved for internal use. |
| indexOf | Reserved 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.
| Parameter | Type | Description |
|---|---|---|
| position | float | The position of the stop,in unit of percentage. |
| color | CellsColor | The color of the stop. |
| alpha | int | The alpha of the color. |
add(position, color, alpha) (2 of 3)
Add a gradient stop.
| Parameter | Type | Description |
|---|---|---|
| position | float | The position of the stop,in unit of percentage. |
| color | Color | The color of the stop. |
| alpha | int | The 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.