Represents a range of one or more cells.
Constructors
Section titled "Constructors"SpreadsheetCellRange
new SpreadsheetCellRange(firstRow: number, firstColumn: number): SpreadsheetCellRange Returns SpreadsheetCellRange
Properties
Section titled "Properties"$t: Type empty
Section titled "empty"empty: SpreadsheetCellRange Accessors
Section titled "Accessors"firstColumn
Section titled "firstColumn"Returns the index of the first column in the range.
get firstColumn(): number Returns number
firstRow
Section titled "firstRow"Returns the index of the first row in the range.
get firstRow(): number Returns number
isEmpty
Section titled "isEmpty"Returns a boolean indicating if the structure represents a valid range.
get isEmpty(): boolean Returns boolean
isSingleCell
Section titled "isSingleCell"Returns a boolean indicating if the range represents a single cell.
get isSingleCell(): boolean Returns boolean
lastColumn
Section titled "lastColumn"Returns the index of the last column in the range.
get lastColumn(): number Returns number
lastRow
Section titled "lastRow"Returns the index of the last row in the range.
get lastRow(): number Returns number
Methods
Section titled "Methods"contains
Section titled "contains"Returns a boolean indicating if the specified cell is within the range.
contains(cell: SpreadsheetCell): boolean Parameters
- cell:
SpreadsheetCellThe cell to evaluate
Returns boolean
equals
Section titled "equals"Compares the value of this SheetCellRange instance to the specified [[SpreadsheetCellRange]].
equals(other: SpreadsheetCellRange): boolean Parameters
- other:
SpreadsheetCellRangeThe instance of the [[SpreadsheetCellRange]] to compare
Returns boolean
equals1
Section titled "equals1"Compares the specified [[SpreadsheetCellRange]] to this instance's values.
equals1(obj: any): boolean Parameters
- obj:
anyThe object to compare to the current instance
Returns boolean
getHashCode
Section titled "getHashCode"Returns a hash value for the [[SpreadsheetCellRange]]
getHashCode(): number Returns number
intersect
Section titled "intersect"Returns a range that represents the common area within the current and specified range.
intersect(range: SpreadsheetCellRange): SpreadsheetCellRange Parameters
- range:
SpreadsheetCellRangeThe range to intersect with.
Returns SpreadsheetCellRange
intersectsWith
Section titled "intersectsWith"Returns a boolean indicating if the current and specified range overlap.
intersectsWith(range: SpreadsheetCellRange): boolean Parameters
- range:
SpreadsheetCellRangeThe range to compare with.
Returns boolean
toString
Section titled "toString"Returns a string representation of the [[SpreadsheetCellRange]]
toString(): string Returns string
union
Section titled "union"Returns a range that contains the contains the current and specified range.
union(range: SpreadsheetCellRange): SpreadsheetCellRange Parameters
- range:
SpreadsheetCellRangeThe range to combine with.
Returns SpreadsheetCellRange
staticInit
Section titled "staticInit"staticInit(): void