IGradientStopCollection

IGradientStopCollection — Aspose.Slides FOSS Java API Reference

IGradientStopCollection — Represents a collection of gradient stops.

Package: org.aspose.slides.foss


Methods

MethodReturnsDescription
get(int index)IGradientStopGets the gradient stop at the specified index.
size()intReturns the number of gradient stops.
add(double position, Color color)IGradientStopCreates and adds a new gradient stop with the specified position and color.
add(double position, PresetColor presetColor)IGradientStopCreates and adds a new gradient stop with the specified position and preset color.
add(double position, SchemeColor schemeColor)IGradientStopCreates and adds a new gradient stop with the specified position and scheme color.
insert(int index, double position, Color color)voidInserts a new gradient stop at the specified index with the given position and color.
insert(int index, double position, PresetColor presetColor)voidInserts a new gradient stop at the specified index with the given position and preset color.
insert(int index, double position, SchemeColor schemeColor)voidInserts a new gradient stop at the specified index with the given position and scheme color.
removeAt(int index)voidRemoves the gradient stop at the specified index.
clear()voidRemoves all gradient stops.
asICollection()List<IGradientStop>Returns all gradient stops as a list.
asIEnumerable()Iterable<IGradientStop>Returns all gradient stops as an iterable.

See Also