GradientStopCollection

GradientStopCollection

Overview

GradientStopCollection is a class in Aspose.Slides FOSS for C++.

Represents a collection of gradient stops.

This class provides 30 methods for working with GradientStopCollection objects in C++ programs. Available methods include: GradientStop, GradientStopCollection, add, as_i_collection, as_i_enumerable, begin, clear, const_iterator, end, init_internal, insert, iterator, and 4 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: GradientStop, const_iterator, iterator.

Properties

NameTypeAccessDescription
GradientStopGradientStopReadGets the gradient stop.
iteratoriteratorReadGets the iterator.
const_iteratorconst_iteratorReadGets the const iterator.

Methods

SignatureDescription
GradientStop() → GradientStopProperty provides access to a GradientStop element in the collection
GradientStop() → GradientStop
GradientStop() → GradientStop
GradientStop() → GradientStop
GradientStop() → GradientStop
iterator() → iterator
iterator() → iterator
const_iterator() → const_iteratorProperty exposes a const iterator for read‑only traversal of the collection
const_iterator() → const_iterator
GradientStopCollection()
init_internal(gs_lst_element: pugi::xml_node, save_callback: std::function<void()>)Initialize XML-backed gradient stop collection.
save()Save changes via the save callback.
set_color_from_arg(cf: SimpleColorFormat, color: Drawing::Color)Set color on a SimpleColorFormat from a Drawing::Color value.
set_color_from_arg(cf: SimpleColorFormat, preset: PresetColor)Set color on a SimpleColorFormat from a Drawing::Color value.
set_color_from_arg(cf: SimpleColorFormat, scheme: SchemeColor)Set color on a SimpleColorFormat from a Drawing::Color value.
size() → std::size_tReturns the number of gradient stops.
add(position: float, color: Drawing::Color) → GradientStopAdds a gradient stop with the given position and color.
add(position: float, preset: PresetColor) → GradientStopAdds a gradient stop with the given position and color.
add(position: float, scheme: SchemeColor) → GradientStopAdds a gradient stop with the given position and color.
insert(index: std::size_t, position: float, color: Drawing::Color)Inserts a gradient stop at the given index.
insert(index: std::size_t, position: float, preset: PresetColor)Inserts a gradient stop at the given index.
insert(index: std::size_t, position: float, scheme: SchemeColor)Inserts a gradient stop at the given index.
remove_at(index: std::size_t)Removes the gradient stop at the given index.
clear()Removes all gradient stops.
as_i_collection() → std::vector<GradientStop>Returns all gradient stops as a vector.
as_i_enumerable() → std::vector<GradientStop>Returns all gradient stops as a vector (same as as_i_collection).
begin() → iterator
end() → iterator
begin() → const_iterator
end() → const_iterator

See Also

 English