---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/IGradientStopCollection
---

# IGradientStopCollection

## Overview

`IGradientStopCollection` is a interface in Aspose.Slides FOSS for Java.

Represents a collection of gradient stops.

This interface provides 12 methods for working with IGradientStopCollection objects in Java programs.
Available methods include: `add`, `asICollection`, `asIEnumerable`, `clear`, `get`, `insert`, `removeAt`, `size`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `get(index: int)` → `IGradientStop` | Gets the gradient stop at the specified index. |
| `size()` → `int` | Returns the number of gradient stops. |
| `add(position: double, color: Color)` → `IGradientStop` | Creates and adds a new gradient stop with the specified position and color. |
| `add(position: double, presetColor: PresetColor)` → `IGradientStop` | Creates and adds a new gradient stop with the specified position and preset color. |
| `add(position: double, schemeColor: SchemeColor)` → `IGradientStop` | Creates and adds a new gradient stop with the specified position and scheme color. |
| `insert(index: int, position: double, color: Color)` | Inserts a new gradient stop at the specified index with the given position and color. |
| `insert(index: int, position: double, presetColor: PresetColor)` | Inserts a new gradient stop at the specified index with the given position and preset color. |
| `insert(index: int, position: double, schemeColor: SchemeColor)` | Inserts a new gradient stop at the specified index with the given position and scheme color. |
| `removeAt(index: int)` | Removes the gradient stop at the specified index. |
| `clear()` | Removes all gradient stops. |
| `asICollection()` → `List` | Returns all gradient stops as a list. |
| `asIEnumerable()` → `Iterable` | Returns all gradient stops as an iterable. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)