MCPcopy Create free account
hub / github.com/scanny/python-pptx / cell

Method cell

src/pptx/table.py:34–40  ·  view source on GitHub ↗

Return cell at `row_idx`, `col_idx`. Return value is an instance of |_Cell|. `row_idx` and `col_idx` are zero-based, e.g. cell(0, 0) is the top, left cell in the table.

(self, row_idx: int, col_idx: int)

Source from the content-addressed store, hash-verified

32 self._graphic_frame = graphic_frame
33
34 def cell(self, row_idx: int, col_idx: int) -> _Cell:
35 """Return cell at `row_idx`, `col_idx`.
36
37 Return value is an instance of |_Cell|. `row_idx` and `col_idx` are zero-based, e.g.
38 cell(0, 0) is the top, left cell in the table.
39 """
40 return _Cell(self._tbl.tc(row_idx, col_idx), self)
41
42 @lazyproperty
43 def columns(self) -> _ColumnCollection:

Calls 2

_CellClass · 0.85
tcMethod · 0.80

Tested by 1