TableColumn

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

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/table-column#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-column#getIndex()` | `Integer` | Returns the 0-based index of the column. |
| `https://developers.google.com/apps-script/reference/slides/table-column#getNumCells()` | `Integer` | Returns the number of cells in this column. |
| `https://developers.google.com/apps-script/reference/slides/table-column#getParentTable()` | `https://developers.google.com/apps-script/reference/slides/table` | Returns the table containing the current column. |
| `https://developers.google.com/apps-script/reference/slides/table-column#getWidth()` | `Number` | Returns the width of the column in points. |
| `https://developers.google.com/apps-script/reference/slides/table-column#remove()` | `void` | Removes the table column. |

## 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 at the specified index.

#### 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 column.

#### Return


`Integer`

#### 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 column.

#### Return


`Integer`

#### 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 column.

#### Return


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

#### 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`

*** ** * ** ***

### `getWidth()`

Returns the width of the column in points.

#### Return


`Number`

#### 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 column.

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

If no columns 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`