
## GradientStopCollection class

Represents the gradient stop collection.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Count](#count) | int |  |
| [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) | Reserved for internal use. |

### GradientStopCollection.Count property {#count}

**Type:** int

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

Gets the gradient stop by the index.

**Type:** GradientStop

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

### removeAt(index) {#removeat}

### iterator() {#iterator}

Reserved for internal use.
