Table row
| 398 | |
| 399 | |
| 400 | class _Row(Subshape): |
| 401 | """Table row""" |
| 402 | |
| 403 | def __init__(self, tr: CT_TableRow, parent: _RowCollection): |
| 404 | super(_Row, self).__init__(parent) |
| 405 | self._parent = parent |
| 406 | self._tr = tr |
| 407 | |
| 408 | @property |
| 409 | def cells(self): |
| 410 | """Read-only reference to collection of cells in row. |
| 411 | |
| 412 | An individual cell is referenced using list notation, e.g. `cell = row.cells[0]`. |
| 413 | """ |
| 414 | return _CellCollection(self._tr, self) |
| 415 | |
| 416 | @property |
| 417 | def height(self) -> Length: |
| 418 | """Height of row in EMU.""" |
| 419 | return self._tr.h |
| 420 | |
| 421 | @height.setter |
| 422 | def height(self, height: Length): |
| 423 | self._tr.h = height |
| 424 | self._parent.notify_height_changed() |
| 425 | |
| 426 | |
| 427 | class _CellCollection(Subshape): |
no outgoing calls
searching dependent graphs…