The goog.editor.plugins.TableEditor.CellSelection_ Class

.containsSingleCell()

Returns a boolean value indicating whether or not there is exactly one cell in this selection. Note that this may not be the same as checking whether getCells().length == 1; if there is a single cell with rowSpan/colSpan set it will appear multiple times.

returns {boolean}
Whether there is exatly one cell in this selection.

.getCells()

Returns the cells in this selection.

returns {Array.<Element>}
Cells in this selection.

.getFirstColumnIndex()

Returns the column index of the farthest left cell in this selection.

returns {number}
The column index.

.getFirstRowIndex()

Returns the row index of the uppermost cell in this selection.

returns {number}
The row index.

.getLastColumnIndex()

Returns the column index of the farthest right cell in this selection.

returns {number}
The column index.

.getLastRowIndex()

Returns the row index of the lowermost cell in this selection.

returns {number}
The row index.

.getTable()

Returns the EditableTable object of which this selection's cells are a subset.

returns {goog.editor.Table?}
the table.

.isRectangle()

Returns a boolean value indicating whether or not the cells in this selection form a rectangle.

returns {boolean}
Whether the selection forms a rectangle.