|
OpenXLSX 1.9.1
|
An encapsulation of the XLSX cell styles. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLCellStyles () | |
| XLCellStyles (const XMLNode &node) | |
| Constructor. New items should only be created through an XLStyles object. | |
| XLCellStyles (const XLCellStyles &other) | |
| Copy Constructor. | |
| XLCellStyles (XLCellStyles &&other) | |
| Move Constructor. | |
| ~XLCellStyles () | |
| XLCellStyles & | operator= (const XLCellStyles &other) |
| Copy assignment operator. | |
| XLCellStyles & | operator= (XLCellStyles &&other) noexcept=default |
| Move assignment operator. | |
| size_t | count () const |
| Get the count of cell styles. | |
| XLCellStyle | cellStyleByIndex (XLStyleIndex index) const |
| Get the cell style identified by index. | |
| XLCellStyle | operator[] (XLStyleIndex index) const |
| Operator overload: allow [] as shortcut access to cellStyleByIndex. | |
| XLStyleIndex | create (XLCellStyle copyFrom=XLCellStyle{}, std::string_view styleEntriesPrefix=XLDefaultStyleEntriesPrefix) |
| Append a new XLCellStyle, based on copyFrom, and return its index in cellStyles node. | |
An encapsulation of the XLSX cell styles.
| XLCellStyles::XLCellStyles | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLStyles object.
| node | An XMLNode object with the cellStyles item. If no input is provided, a null node is used. |
| XLCellStyles::XLCellStyles | ( | const XLCellStyles & | other | ) |
Copy Constructor.
| other | Object to be copied. |
| XLCellStyles::XLCellStyles | ( | XLCellStyles && | other | ) |
Move Constructor.
| other | Object to be moved. |
| XLCellStyles::~XLCellStyles | ( | ) |
| XLCellStyle XLCellStyles::cellStyleByIndex | ( | XLStyleIndex | index | ) | const |
Get the cell style identified by index.
| size_t XLCellStyles::count | ( | ) | const |
Get the count of cell styles.
| XLStyleIndex XLCellStyles::create | ( | XLCellStyle | copyFrom = XLCellStyle{}, |
| std::string_view | styleEntriesPrefix = XLDefaultStyleEntriesPrefix |
||
| ) |
Append a new XLCellStyle, based on copyFrom, and return its index in cellStyles node.
| copyFrom | Can provide an XLCellStyle to use as template for the new style |
| styleEntriesPrefix | Prefix the newly created cell style XMLNode with this pugi::node_pcdata text |
| XLCellStyles & XLCellStyles::operator= | ( | const XLCellStyles & | other | ) |
Copy assignment operator.
| other | Right hand side of assignment operation. |
|
defaultnoexcept |
Move assignment operator.
| other | Right hand side of assignment operation. |
|
inline |
Operator overload: allow [] as shortcut access to cellStyleByIndex.
| index | The index within the XML sequence |