docx.add_row
docx.add_row(doc, table, [values], [at=])
Input: doc, table, values, at · Output: no output
What it is
Inserts a row into body table table (0-based) so it becomes row at (default: appended). values is a list with one item per cell, the rest left blank. The new row copies its neighbour's layout -- cell widths, borders, shading, merges, and the first run's formatting -- but never a header row's "repeat on every page" flag or bold; a row inserted inside a vertically merged block joins the merge. *Added in v0.4.7*
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
docx.add_row(doc, table, [values], [at=]) | doc —not documented yettable —Inserts a row into body table table (0-based) so it becomes row at (default: appended).values optionalvalues is a list with one item per cell, the rest left blank.at optionalInserts a row into body table table (0-based) so it becomes row at (default: appended). | not documented yet | The new row copies its neighbour's layout -- cell widths, borders, shading, merges, and the first run's formatting -- but never a header row's "repeat on every page" flag or bold; a row inserted inside a vertically merged block joins the merge. *Added in v0.4.7*. |
Examples
No documentation example calls this form yet. The File I/O chapter is where one belongs.