
## GradientStopCollection class

Represents the gradient stop collection.



**Inheritance:** [GradientStopCollection](/diagram/python-net/aspose.diagram/gradientstopcollection) → 
[Collection](/diagram/python-net/aspose.diagram/collection)



The GradientStopCollection type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [count](/diagram/python-net/aspose.diagram/gradientstopcollection/count) | Gets the number of elements actually contained in the collection. |



Gets the gradient stop by the index.
### Indexer
| Name | Description |
| :- | :- |
| [index] | The index. |


### Methods
| Method | Description |
| :- | :- |
| [is_exist(index)](/diagram/python-net/aspose.diagram/gradientstopcollection/is_exist/#int) | Is exist item in the collection. |
| [clear()](/diagram/python-net/aspose.diagram/gradientstopcollection/clear/#) | Removes all elements from collection. |
| [add(position, color)](/diagram/python-net/aspose.diagram/gradientstopcollection/add/#DoubleValue-ColorValue) | Add a gradient stop. |


### See Also

* module [aspose.diagram](../)
* class [Collection](/diagram/python-net/aspose.diagram/collection)
