An encapsulation of a fill item.
More...
#include <XLStyles_Fills.hpp>
An encapsulation of a fill item.
◆ XLFill() [1/4]
◆ XLFill() [2/4]
| XLFill::XLFill |
( |
const XMLNode & | node | ) |
|
|
explicit |
Constructor. New items should only be created through an XLStyles object.
- Parameters
-
| node | An XMLNode object with the fill XMLNode. If no input is provided, a null node is used. |
◆ XLFill() [3/4]
| XLFill::XLFill |
( |
const XLFill & | other | ) |
|
Copy Constructor.
- Parameters
-
| other | Object to be copied. |
◆ XLFill() [4/4]
| OpenXLSX::XLFill::XLFill |
( |
XLFill && | other | ) |
|
|
defaultnoexcept |
Move Constructor.
- Parameters
-
◆ ~XLFill()
◆ backgroundColor()
| XLColor XLFill::backgroundColor |
( |
| ) |
|
◆ bottom()
| double XLFill::bottom |
( |
| ) |
|
◆ color()
◆ degree()
| double XLFill::degree |
( |
| ) |
|
◆ fillType()
Get the name of the element describing a fill.
- Returns
- The XLFillType derived from the name of the first child element of the fill node
Returns the name of the first element child of fill
- Note
- an empty node ::name() returns an empty string "", leading to XLFillTypeInvalid
◆ gradientType()
Getter functions for gradientFill - will throwOnFillType(XLPatternFill, func).
- Returns
- The requested gradientFill property
◆ left()
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to the lhs object.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to lhs object.
◆ patternType()
Getter functions for patternFill - will throwOnFillType(XLGradientFill, func).
- Returns
- The requested patternFill property
◆ right()
◆ setBackgroundColor()
◆ setBottom()
| bool XLFill::setBottom |
( |
double | newBottom | ) |
|
◆ setColor()
◆ setDegree()
| bool XLFill::setDegree |
( |
double | newDegree | ) |
|
◆ setFillType()
| bool XLFill::setFillType |
( |
XLFillType | newFillType, |
|
|
bool | force = false ) |
Create & set the base XML element describing the fill.
- Parameters
-
| newFillType | that shall be set |
| force | erase an existing fillType() if not equal newFillType |
- Returns
- true for success, false for failure
◆ setGradientType()
Setter functions for gradientFill - will throwOnFillType(XLPatternFill, func).
- Parameters
-
- Returns
- true for success, false for failure
- Note
- for gradient stops, use the stops() getter with the XLGradientStops access functions (create, stopByIndex, []) and the XLGradientStop setter functions
◆ setLeft()
| bool XLFill::setLeft |
( |
double | newLeft | ) |
|
◆ setPatternType()
Setter functions for patternFill - will throwOnFillType(XLGradientFill, func).
- Parameters
-
- Returns
- true for success, false for failure
◆ setRight()
| bool XLFill::setRight |
( |
double | newRight | ) |
|
◆ setTop()
| bool XLFill::setTop |
( |
double | newTop | ) |
|
◆ stops()
◆ summary()
| std::string XLFill::summary |
( |
| ) |
|
Return a string summary of the fill properties.
- Returns
- string with info about the fill object
◆ top()
◆ XLFills
◆ XLStyles
The documentation for this class was generated from the following files: