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

Method iter_tcs

src/docx/oxml/table.py:180–189  ·  view source on GitHub ↗

Generate each of the `w:tc` elements in this table, left to right and top to bottom. Each cell in the first row is generated, followed by each cell in the second row, etc.

(self)

Source from the content-addressed store, hash-verified

178 return len(self.tblGrid.gridCol_lst)
179
180 def iter_tcs(self):
181 """Generate each of the `w:tc` elements in this table, left to right and top to
182 bottom.
183
184 Each cell in the first row is generated, followed by each cell in the second
185 row, etc.
186 """
187 for tr in self.tr_lst:
188 for tc in tr.tc_lst:
189 yield tc
190
191 @classmethod
192 def new_tbl(cls, rows: int, cols: int, width: Length) -> CT_Tbl:

Callers 1

_cellsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected