Class TableCell

TableCell

A cell in a table.

Methods

MethodReturn typeBrief description
getColumnIndex()IntegerReturns the 0-based column index of the table cell.
getColumnSpan()IntegerReturns the column span of the table cell.
getContentAlignment()ContentAlignmentReturns the ContentAlignment of the text in the table cell.
getFill()FillReturns the fill of the table cell.
getHeadCell()TableCellReturns the head cell of this table cell.
getMergeState()CellMergeStateReturns the merge state of the table cell.
getParentColumn()TableColumnReturns the table column containing the current cell.
getParentRow()TableRowReturns the table row containing the current cell.
getParentTable()TableReturns the table containing the current cell.
getRowIndex()IntegerReturns the 0-based row index of the table cell.
getRowSpan()IntegerReturns the row span of the table cell.
getText()TextRangeReturns the text content of the table cell.
setContentAlignment(contentAlignment)TableCellSets the ContentAlignment of the text in the table cell.

Detailed documentation

getColumnIndex()

Returns the 0-based column index of the table cell.

Return

Integer


getColumnSpan()

Returns the column span of the table cell.

Return

Integer


getContentAlignment()

Returns the ContentAlignment of the text in the table cell.

Return

ContentAlignment


getFill()

Returns the fill of the table cell.

Return

Fill


getHeadCell()

Returns the head cell of this table cell. Returns null if this cell has not been merged or if this cell is the head cell.

Return

TableCell


getMergeState()

Returns the merge state of the table cell.

Return

CellMergeState


getParentColumn()

Returns the table column containing the current cell.

Return

TableColumn


getParentRow()

Returns the table row containing the current cell.

Return

TableRow


getParentTable()

Returns the table containing the current cell.

Return

Table


getRowIndex()

Returns the 0-based row index of the table cell.

Return

Integer


getRowSpan()

Returns the row span of the table cell.

Return

Integer


getText()

Returns the text content of the table cell. Returns null if the cell is merged but is not a head cell.

Text within a table cell always terminates with a newline character.

Return

TextRange


setContentAlignment(contentAlignment)

Sets the ContentAlignment of the text in the table cell.

Parameters

NameTypeDescription
contentAlignmentContentAlignment

Return

TableCell

Send feedback about...

Apps Script
Apps Script