
## GradientStopCollection class

Represents the gradient stop collection.

## Methods

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

### add(position, color, alpha) {#add}

Add a gradient stop.

| Parameter | Type | Description |
| --- | --- | --- |
| position | DoubleValue | The position of the stop,in unit of percentage. |
| color | ColorValue | The color of the stop. |
| alpha |  | The alpha of the color. |

### clear() {#clear}

### get(index) {#get}

Gets the gradient stop by the index.

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

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

### getCount() {#getcount}

### iterator() {#iterator}

Reserved for internal use.

### removeAt() {#removeat}

### set(index) {#set}

Gets the gradient stop by the index.

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

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