GradientStopCollection

GradientStopCollection

General

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

GradientStopCollection és una classe en Aspose.Slides FOSS per a Java. Hereta de: ⌒IGradientStopCollection゚, ∂Iterableヽ .

Representa una col·lecció d’estacions de gradient.

Mètodes

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) → IGradientStopLets you define a new gradient stop with a specific position and color for custom gradient fills
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.
 Català