MCPcopy Index your code
hub / github.com/python-openxml/python-docx / add_row

Method add_row

src/docx/table.py:47–55  ·  view source on GitHub ↗

Return a |_Row| instance, newly added bottom-most to the table.

(self)

Source from the content-addressed store, hash-verified

45 return _Column(gridCol, self)
46
47 def add_row(self):
48 """Return a |_Row| instance, newly added bottom-most to the table."""
49 tbl = self._tbl
50 tr = tbl.add_tr()
51 for gridCol in tbl.tblGrid.gridCol_lst:
52 tc = tr.add_tc()
53 if gridCol.w is not None:
54 tc.width = gridCol.w
55 return _Row(tr, self)
56
57 @property
58 def alignment(self) -> WD_TABLE_ALIGNMENT | None:

Callers 2

it_can_add_a_rowMethod · 0.95
when_add_row_to_tableFunction · 0.80

Calls 1

_RowClass · 0.85

Tested by 1

it_can_add_a_rowMethod · 0.76