Represents a Table in the Word document.
More...
#include <Document.h>
|
| | Table (void *node) |
| |
| Cell | cell (int row, int col) |
| |
| Row | row (int rowIndex) |
| |
| std::vector< Row > | rows () const |
| |
| void | mergeCells (int startRow, int startCol, int endRow, int endCol) |
| |
| Table & | setBorders (const BorderSettings &all) |
| |
| Table & | setBorders (const BorderSettings &outer, const BorderSettings &inner) |
| |
| Table & | setBorders (const BorderSettings &top, const BorderSettings &bottom, const BorderSettings &left, const BorderSettings &right, const BorderSettings &insideH, const BorderSettings &insideV) |
| |
| Table & | setColumnWidth (int colIndex, int twips) |
| |
| Table & | setColumnWidths (const std::vector< int > &twipsList) |
| |
| Table & | setAlignment (gsl::czstring align) |
| |
| int | gridSpan () const |
| |
| std::string | vMerge () const |
| |
| std::vector< BlockElement > | elements () const |
| |
| int | replaceText (const std::string &search, const std::string &replace) |
| |
| std::string | text () const |
| |
| void | remove () |
| |
| Table | cloneAfter () |
| |
| Paragraph | insertParagraphAfter (const std::string &text="") |
| |
Represents a Table in the Word document.
- Example: Creating and Formatting a Table
auto t = doc.addTable(2, 2);
t.cell(0, 0).addParagraph("Top Left");
t.row(0).setRepeatHeaderRow(true);
◆ Table()
| openword::Table::Table |
( |
void * |
node | ) |
|
|
explicit |
◆ cell()
| Cell openword::Table::cell |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
◆ cloneAfter()
| Table openword::Table::cloneAfter |
( |
| ) |
|
◆ elements()
| std::vector< BlockElement > openword::Table::elements |
( |
| ) |
const |
◆ gridSpan()
| int openword::Table::gridSpan |
( |
| ) |
const |
◆ insertParagraphAfter()
| Paragraph openword::Table::insertParagraphAfter |
( |
const std::string & |
text = "" | ) |
|
◆ mergeCells()
| void openword::Table::mergeCells |
( |
int |
startRow, |
|
|
int |
startCol, |
|
|
int |
endRow, |
|
|
int |
endCol |
|
) |
| |
◆ remove()
| void openword::Table::remove |
( |
| ) |
|
◆ replaceText()
| int openword::Table::replaceText |
( |
const std::string & |
search, |
|
|
const std::string & |
replace |
|
) |
| |
◆ row()
| Row openword::Table::row |
( |
int |
rowIndex | ) |
|
◆ rows()
| std::vector< Row > openword::Table::rows |
( |
| ) |
const |
◆ setAlignment()
| Table & openword::Table::setAlignment |
( |
gsl::czstring |
align | ) |
|
◆ setBorders() [1/3]
◆ setBorders() [2/3]
◆ setBorders() [3/3]
◆ setColumnWidth()
| Table & openword::Table::setColumnWidth |
( |
int |
colIndex, |
|
|
int |
twips |
|
) |
| |
◆ setColumnWidths()
| Table & openword::Table::setColumnWidths |
( |
const std::vector< int > & |
twipsList | ) |
|
◆ text()
| std::string openword::Table::text |
( |
| ) |
const |
◆ vMerge()
| std::string openword::Table::vMerge |
( |
| ) |
const |
The documentation for this class was generated from the following file:
- /home/runner/work/OpenWord/OpenWord/include/openword/Document.h