GradientStop
Overview
GradientStop is a class in Aspose.Slides FOSS for C++.
Represents a gradient stop within a gradient fill. A gradient stop defines a color at a specific position (0.0 to 1.0) within a gradient fill.
This class declares 11 methods for GradientStop objects in C++ programs.
Available methods include: GradientStop, SimpleColorFormat, color, init_internal, position, save, set_position.
Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Accessor methods: SimpleColorFormat.
Accessor Methods
| Name | Type | Access | Description |
|---|---|---|---|
SimpleColorFormat | SimpleColorFormat | Read | Gets the simple color format. |
Methods
| Signature | Description |
|---|---|
SimpleColorFormat() → SimpleColorFormat | Returns the color format for this gradient stop. |
SimpleColorFormat() → SimpleColorFormat | Returns the color format for this gradient stop (const). |
GradientStop() | Calls GradientStop on this GradientStop instance. |
GradientStop(position: float) | Calls GradientStop(position) on this GradientStop instance. |
GradientStop(position: float, color: Drawing::Color) | Calls GradientStop(position, color) on this GradientStop instance. |
init_internal(gs_element: pugi::xml_node, save_callback: std::function<void()>) | Initialize from an XML \ element. |
save() | Persist changes via the save callback. |
position() → float | Returns the position of the gradient stop (0.0 to 1.0). |
set_position(value: float) | Sets the position of the gradient stop (0.0 to 1.0). |
color() → SimpleColorFormat | Returns the color format for this gradient stop. |
color() → SimpleColorFormat | Returns the color format for this gradient stop (const). |