GradientStopCollection

GradientStopCollection

Overview

GradientStopCollection is a class in Aspose.Slides FOSS for Java. Inherits from: IGradientStopCollection, Iterable<IGradientStop>.

Represents a collection of gradient stops.

Methods

SignatureDescription
GradientStopCollection(gsLst: Element, saveCallback: Runnable)Creates a new GradientStopCollection backed by the given {@code <a:gsLst>} element.
get(index: int)IGradientStopReturns the gradient stop at the specified zero‑based index
size()intReturns the number of gradient stops in the collection
add(position: double, color: Color)IGradientStopAdds a new gradient stop with the given position and solid color, returning the created stop
add(position: double, presetColor: PresetColor)IGradientStop
add(position: double, schemeColor: SchemeColor)IGradientStop
insert(index: int, position: double, color: Color)Inserts a gradient stop with the given position and color at the specified index
insert(index: int, position: double, presetColor: PresetColor)
insert(index: int, position: double, schemeColor: SchemeColor)
removeAt(index: int)Removes the gradient stop at the specified index
clear()Removes all gradient stops from the collection
asICollection()List<IGradientStop>Returns the gradient stops as a List
asIEnumerable()Iterable<IGradientStop>Returns the gradient stops as an Iterable
iterator()Iterator<IGradientStop>Returns an iterator over the gradient stops in this collection.

See Also