Class TableRow

TableRow

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

Methods

MethodReturn typeBrief description
getCell(cellIndex)TableCellReturns the cell at the specified index.
getIndex()IntegerReturns the 0-based index of the row.
getMinimumHeight()NumberReturns the minimum height of the row in points.
getNumCells()IntegerReturns the number of cells in this row.
getParentTable()TableReturns the table containing the current row.
remove()voidRemoves the table row.

Detailed documentation

getCell(cellIndex)

Returns the cell at the specified index.

Parameters

NameTypeDescription
cellIndexIntegerThe 0-based index of the cell to retrieve.

Return

TableCell — the cell.


getIndex()

Returns the 0-based index of the row.

Return

Integer


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


getNumCells()

Returns the number of cells in this row.

Return

Integer


getParentTable()

Returns the table containing the current row.

Return

Table


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.

发送以下问题的反馈:

此网页
Apps Script
Apps Script