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 |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/table-row#getCell(Integer)` | `https://developers.google.com/apps-script/reference/slides/table-cell` | Returns the cell at the specified index. |
| `https://developers.google.com/apps-script/reference/slides/table-row#getIndex()` | `Integer` | Returns the 0-based index of the row. |
| `https://developers.google.com/apps-script/reference/slides/table-row#getMinimumHeight()` | `Number` | Returns the minimum height of the row in points. |
| `https://developers.google.com/apps-script/reference/slides/table-row#getNumCells()` | `Integer` | Returns the number of cells in this row. |
| `https://developers.google.com/apps-script/reference/slides/table-row#getParentTable()` | `https://developers.google.com/apps-script/reference/slides/table` | Returns the table containing the current row. |
| `https://developers.google.com/apps-script/reference/slides/table-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


`https://developers.google.com/apps-script/reference/slides/table-cell` --- The cell.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `getIndex()`

Returns the 0-based index of the row.

#### Return


`Integer` --- The 0-based index of the row.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `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` --- The minimum height of the row in points.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `getNumCells()`

Returns the number of cells in this row.

#### Return


`Integer` --- The number of cells in this row.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `getParentTable()`

Returns the table containing the current row.

#### Return


`https://developers.google.com/apps-script/reference/slides/table` --- The table containing the current row.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `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](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`