The XLTableCollection class manages multiple tables within a worksheet.
More...
#include <XLTables.hpp>
The XLTableCollection class manages multiple tables within a worksheet.
◆ XLTableCollection() [1/2]
| OpenXLSX::XLTableCollection::XLTableCollection |
( |
| ) |
|
|
default |
◆ XLTableCollection() [2/2]
Constructor.
- Parameters
-
| node | The worksheet XML node. |
| worksheet | The parent worksheet. |
◆ add() [1/2]
| XLTable OpenXLSX::XLTableCollection::add |
( |
std::string_view |
name, |
|
|
const XLCellRange & |
range |
|
) |
| |
Add a new table using a typed cell range.
- Parameters
-
- Returns
- The newly created XLTable object.
◆ add() [2/2]
| XLTable OpenXLSX::XLTableCollection::add |
( |
std::string_view |
name, |
|
|
std::string_view |
range |
|
) |
| |
Add a new table to the worksheet.
- Parameters
-
| name | The table name. |
| range | The cell range for the table (e.g. "A1:C5"). |
- Returns
- The newly created XLTable object.
◆ count()
| size_t OpenXLSX::XLTableCollection::count |
( |
| ) |
const |
Get the number of tables in the collection.
◆ operator[]()
| XLTable OpenXLSX::XLTableCollection::operator[] |
( |
size_t |
index | ) |
const |
Get a table by its 0-based index.
◆ table()
| XLTable OpenXLSX::XLTableCollection::table |
( |
std::string_view |
name | ) |
const |
◆ valid()
| bool OpenXLSX::XLTableCollection::valid |
( |
| ) |
const |
Check if the collection is valid.
◆ XLWorksheet
The documentation for this class was generated from the following files:
- /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/headers/XLTables.hpp
- /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/sources/XLTables.cpp