Paper Office
paper-docxAPI referencetable

_Rows

paper-docx 0.2.0 API reference

Sequence of _Row objects corresponding to the rows in a table.

Supports len(), iteration, indexed access, and slicing.

_Rows(tbl: CT_Tbl, parent: TableParent)

Attributes

part

attributepartXmlPart

The package part containing this object.

table

attributetableTable

Reference to the Table object this row collection belongs to.

Functions

__getitem__

func__getitem__(idx: int | slice) -> _Row | list[_Row]

Provide indexed access, (e.g. rows[0] or rows[1:3])

paramidxint | slice

Returns

docx.table._Row | list[docx.table._Row]

__iter__

func__iter__()

__len__

func__len__()

On this page