CellArea

CellArea class

Represent an area of cells.

new CellArea()

Properties

NameDescription
EndColumnGets or set the end column of this area.
EndRowGets or set the end row of this area.
StartColumnGets or set the start column of this area.
StartRowGets or set the start row of this area.

Methods

NameDescription
compareTo(obj)Compare two CellArea objects according to their top-left corner.
toString()Returns a string represents the current cell area object.
createCellArea(startRow, startColumn, endRow, endColumn) (static)Creates a cell area.
createCellArea(startCellName, endCellName) (static)Creates a cell area.

EndColumn

Gets or set the end column of this area.

EndRow

Gets or set the end row of this area.

StartColumn

Gets or set the start column of this area.

StartRow

Gets or set the start row of this area.

compareTo(obj)

Compare two CellArea objects according to their top-left corner.

ParameterTypeDescription
objObject

Returns: Number — Number If two corners are in different rows, then compare their row index. Otherwise compare their column index. If two corners are same, then 0 will be returned.

toString()

Returns a string represents the current cell area object.

Returns: String — String

createCellArea(startRow, startColumn, endRow, endColumn) (static)

Creates a cell area.

ParameterTypeDescription
startRowNumberThe start row.
startColumnNumberThe start column.
endRowNumberThe end row.
endColumnNumberThe end column.

Returns: CellArea — CellArea Return a CellArea.

createCellArea(startCellName, endCellName) (static)

Creates a cell area.

ParameterTypeDescription
startCellNameStringThe top-left cell of the range.
endCellNameStringThe bottom-right cell of the range.

Returns: CellArea — CellArea Return a CellArea.