Class TableRow  |  Apps Script  |  Google for Developers (original) (raw)

Class TableRow

Stay organized with collections Save and categorize content based on your preferences.

TableRow

A row in a table. A row consists of a list of table cells. A row is identified by the row index.

Methods

Method Return type Brief description
getCell(cellIndex) TableCell Returns the cell at the specified index.
getIndex() Integer Returns the 0-based index of the row.
getMinimumHeight() Number Returns the minimum height of the row in points.
getNumCells() Integer Returns the number of cells in this row.
getParentTable() Table Returns the table containing the current row.
remove() void Removes the table row.

Detailed documentation

getCell(cellIndex)

Returns the cell at the specified index.

Parameters

Name Type Description
cellIndex Integer The 0-based index of the cell to retrieve.

Return

[TableCell](/apps-script/reference/slides/table-cell) — the cell.

Scripts that use this method require authorization with one or more of the following scopes:


getIndex()

Returns the 0-based index of the row.

Return

Integer

Authorization

Scripts that use this method require authorization with one or more of the following scopes:


getMinimumHeight()

Returns the minimum height of the row in points. The actual height depends on the length of the content of the cell.

Return

Number

Authorization

Scripts that use this method require authorization with one or more of the following scopes:


getNumCells()

Returns the number of cells in this row.

Return

Integer

Authorization

Scripts that use this method require authorization with one or more of the following scopes:


getParentTable()

Returns the table containing the current row.

Return

[Table](/apps-script/reference/slides/table)

Authorization

Scripts that use this method require authorization with one or more of the following scopes:


remove()

Removes the table row.

If all the cells in the row are merged with other rows, the common rows spanned by these cells are removed.

If no rows remain in the table after this removal, the whole table is removed.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-12-02 UTC.