
## GradientStopCollection class

Represents the gradient stop collection.

## Methods

| Name | Description |
| --- | --- |
| [add(position, color, alpha)](#add) | Add a gradient stop. |
| [add(position, color, alpha)](#add-1) | Add a gradient stop. |
| [add()](#add-2) | Reserved for internal use. |
| [clear()](#clear) |  |
| [contains()](#contains) | Reserved for internal use. |
| [get(index)](#get) | Gets the gradient stop by the index. |
| [get()](#get-1) | Reserved for internal use. |
| [getCount()](#getcount) |  |
| [indexOf()](#indexof) | Reserved for internal use. |
| [iterator()](#iterator) |  |
| [removeAt()](#removeat) |  |

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

Reserved for internal use.

### clear() {#clear}

### contains() {#contains}

Reserved for internal use.

### get(index) {#get}

Gets the gradient stop by the index.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The index. |

**Returns:** GradientStop — `GradientStop` The gradient stop.

### get() {#get-1}

Reserved for internal use.

### getCount() {#getcount}

### indexOf() {#indexof}

Reserved for internal use.

### iterator() {#iterator}

### removeAt() {#removeat}
