
## GradientStopCollection class

Represents the gradient stop collection.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Count](#count) | Number |  |
| [Item (int)](#itemint) | GradientStop | Gets the gradient stop by the index. |

## Methods

| Name | Description |
| --- | --- |
| [add](#add) | Add a gradient stop. |
| [clear](#clear) |  |
| [removeAt](#removeat) |  |
| [iterator](#iterator) |  |
| [get](#get) | Reserved for internal use. |
| [contains](#contains) | Reserved for internal use. |
| [indexOf](#indexof) | Reserved for internal use. |

### GradientStopCollection.Count property {#count}

**Type:** Number

### GradientStopCollection.Item (int) property {#itemint}

Gets the gradient stop by the index.

**Type:** GradientStop

### add(position, color, alpha) (1 of 3) {#add}

Add a gradient stop.

| 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(position, color, alpha) (2 of 3) {#add-1}

Add a gradient stop.

| 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. |

---

### add(value) (3 of 3) {#add-2}

Reserved for internal use.

### clear() {#clear}

### removeAt(index) {#removeat}

### iterator() {#iterator}

### get(index) {#get}

Reserved for internal use.

### contains(value) {#contains}

Reserved for internal use.

### indexOf(value) {#indexof}

Reserved for internal use.
