GradientStopCollection
Vue de l’ensemble
‘GradientStopCollection’ est une classe dans Aspose.Slides FOSS pour C++.
Représente une collection d’arrêts de dégradé.
Cette classe fournit 30 méthodes pour travailler avec les objets GradientStopCollection dans des programmes C++. Les méthodologies disponibles comprennent: ‘GradiantStup’, ‘gradienStapColection’, add, ‘as_i_collection’, ‘as _i _numérable’, ‘begin , 'clear ; ‘const_iterator et 'end : ‘init_internal; 'insert .
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
GradientStop | GradientStop | Read | Gets the gradient stop. |
iterator | iterator | Read | Gets the iterator. |
const_iterator | const_iterator | Read | Gets the const iterator. |
méthodes
| Signature | Description |
|---|---|
GradientStop() → GradientStop | Property provides access to a GradientStop element in the collection |
GradientStop() → GradientStop | |
GradientStop() → GradientStop | |
GradientStop() → GradientStop | |
GradientStop() → GradientStop | |
iterator() → iterator | |
iterator() → iterator | |
const_iterator() → const_iterator | Property 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_t | Returns the number of gradient stops. |
add(position: float, color: Drawing::Color) → GradientStop | Adds a gradient stop with the given position and color. |
add(position: float, preset: PresetColor) → GradientStop | Adds a gradient stop with the given position and color. |
add(position: float, scheme: SchemeColor) → GradientStop | Adds 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 |
Voir aussi
- Aspose.Slides - référence API d’entreprise