Class TableColumn

TableColumn

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

Methods

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

Detailed documentation

getCell(cellIndex)

Returns the cell at the specified index.

Parameters

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

Return

TableCell


getIndex()

Returns the 0-based index of the column.

Return

Integer


getNumCells()

Returns the number of cells in this column.

Return

Integer


getParentTable()

Returns the table containing the current column.

Return

Table


getWidth()

Returns the width of the column in points.

Return

Number


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.

发送以下问题的反馈:

此网页
Apps Script
Apps Script