|
| | XLCellRange () |
| | Constructs an uninitialized range.
|
| |
| | XLCellRange (const XMLNode &dataNode, const XLCellReference &topLeft, const XLCellReference &bottomRight, const XLSharedStrings &sharedStrings) |
| |
| | ~XLCellRange ()=default |
| |
| | XLCellRange (const XLCellRange &other)=default |
| |
| | XLCellRange (XLCellRange &&other) noexcept=default |
| |
| XLCellRange & | operator= (const XLCellRange &other)=default |
| |
| XLCellRange & | operator= (XLCellRange &&other) noexcept=default |
| |
| void | fetchColumnStyles () |
| | Scans the worksheet for column-level styles and caches them.
|
| |
| XLCellReference | topLeft () const |
| |
| XLCellReference | bottomRight () const |
| |
| std::string | address () const |
| |
| uint32_t | numRows () const |
| |
| uint16_t | numColumns () const |
| |
| XLCellIterator | begin () const |
| |
| XLCellIterator | end () const |
| |
| void | applyStyle (const XLStyle &style) |
| | Apply a high-level style to all cells within this range.
|
| |
| void | setBorderOutline (XLLineStyle style, XLColor color) |
| | Set border style specifically for the outer edges of this range.
|
| |
| template<typename T > |
| std::vector< std::vector< T > > | getValue () const |
| | Read the range into a 2D matrix of type T.
|
| |
| template<typename T > |
| void | setValue (const std::vector< std::vector< T > > &matrix) |
| |
| bool | empty () const |
| | Returns true if the range is uninitialized or points to an invalid worksheet node.
|
| |
| void | clear () |
| | Clears the values of all cells within the range.
|
| |
| template<typename T , typename = std::enable_if_t< std::is_integral_v<T> or std::is_floating_point_v<T> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> or std::is_same_v<std::decay_t<T>, const char*> || std::is_same_v<std::decay_t<T>, char*> or std::is_same_v<T, XLDateTime>>> |
| XLCellRange & | operator= (T value) |
| | Assigns a single value to every cell in the range.
|
| |
| XLCellRange & | setFormat (XLStyleIndex cellFormatIndex) |
| | Applies a cell format (style) to all cells in the range.
|
| |
| XLCellRange | intersect (const XLCellRange &other) const |
| | Calculates the intersection area between this range and another.
|
| |
Represents a rectangular area of cells within a worksheet.
This class provides a high-level interface for bulk operations on cells, such as clearing values, setting formats, or iterating over a subset of the worksheet. It maintains a cache of column styles to ensure efficient cell creation during iteration.
template<typename T , typename = std::enable_if_t< std::is_integral_v<T> or std::is_floating_point_v<T> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> or std::is_same_v<std::decay_t<T>, const char*> || std::is_same_v<std::decay_t<T>, char*> or std::is_same_v<T, XLDateTime>>>
| XLCellRange & OpenXLSX::XLCellRange::operator= |
( |
T |
value | ) |
|
|
inline |
Assigns a single value to every cell in the range.