Expand description
Row operations for worksheet manipulation.
All functions operate directly on a WorksheetXml structure, keeping the
business logic decoupled from the Workbook
wrapper.
Functionsยง
- duplicate_
row - Duplicate a row, inserting the copy directly below the source row.
- duplicate_
row_ to - Duplicate a row to a specific target row number. Existing rows at and
below
targetare shifted down to make room. - get_
row_ height - Get the height of a row. Returns
Noneif the row does not exist or has no explicit height set. - get_
row_ outline_ level - Get the outline (grouping) level of a row. Returns 0 if not set.
- get_
row_ style - Get the style ID for a row. Returns 0 (default) if the row does not exist or has no explicit style.
- get_
row_ visible - Get the visibility of a row. Returns true if visible (not hidden).
- get_
rows - Get all rows with their data from a worksheet.
- insert_
rows - Insert
countempty rows starting atstart_row, shifting existing rows at and belowstart_rowdownward. - remove_
row - Remove a single row, shifting rows below it upward by one.
- set_
row_ height - Set the height of a row in points. Creates the row if it does not exist.
- set_
row_ outline_ level - Set the outline (grouping) level of a row.
- set_
row_ style - Set the style for an entire row. The
style_idis the ID returned byadd_style(). Setting a row style applies thesattribute on the row element and markscustomFormatso Excel honours it. Existing cells in the row also have their individual style updated. - set_
row_ visible - Set the visibility of a row. Creates the row if it does not exist.