IGradientStopCollection — Aspose.Slides FOSS Java API Reference
IGradientStopCollection — Represents a collection of gradient stops.
Package: org.aspose.slides.foss
Methods
| Method | Returns | Description |
|---|---|---|
get(int index) | IGradientStop | Gets the gradient stop at the specified index. |
size() | int | Returns the number of gradient stops. |
add(double position, Color color) | IGradientStop | Creates and adds a new gradient stop with the specified position and color. |
add(double position, PresetColor presetColor) | IGradientStop | Creates and adds a new gradient stop with the specified position and preset color. |
add(double position, SchemeColor schemeColor) | IGradientStop | Creates and adds a new gradient stop with the specified position and scheme color. |
insert(int index, double position, Color color) | void | Inserts a new gradient stop at the specified index with the given position and color. |
insert(int index, double position, PresetColor presetColor) | void | Inserts a new gradient stop at the specified index with the given position and preset color. |
insert(int index, double position, SchemeColor schemeColor) | void | Inserts a new gradient stop at the specified index with the given position and scheme color. |
removeAt(int index) | void | Removes the gradient stop at the specified index. |
clear() | void | Removes all gradient stops. |
asICollection() | List<IGradientStop> | Returns all gradient stops as a list. |
asIEnumerable() | Iterable<IGradientStop> | Returns all gradient stops as an iterable. |