Represents a rectangular group of cells defined by two row indices and two column indices.
constructor(r?: number, c?: number, r2?: number, c2?: number): CellRange
Initializes a new instance of the CellRange class.
The index of the first row in the range (defaults to -1).
The index of the first column in the range (defaults to -1).
The index of the last row in the range (defaults to r).
The index of the last column in the range (defaults to c).
Checks whether this range contains valid row and column indices (row and column values are zero or greater).
combine(rng: CellRange): CellRange
Returns a new CellRange that represents the union of this range and another given range.
contains(r: any, c?: number): boolean
Checks whether this range contains another range or a specific cell.
The CellRange or row index to find.
The column index (required if the r parameter is not a CellRange object).
containsColumn(c: number): boolean
Checks whether this range contains a given column.
The index of the column to find.
containsRow(r: number): boolean
Checks whether this range contains a given row.
The index of the row to find.
copy(rng: CellRange): void
Copies an existing cell range into this one.
equals(rng: CellRange): boolean
Checks whether this range equals another range.
getRenderSize(p: GridPanel): Size
Gets the rendered size of this range.
intersects(rng: CellRange): boolean
Checks whether this range intersects another range.
intersectsColumn(rng: CellRange): boolean
Checks whether this range intersects the columns in another range.
intersectsRow(rng: CellRange): boolean
Checks whether this range intersects the rows in another range.
setRange(r?: number, c?: number, r2?: number, c2?: number): void
Initializes an existing CellRange.
The index of the first row in the range (defaults to -1).
The index of the first column in the range (defaults to -1).
The index of the last row in the range (defaults to r).
The index of the last column in the range (defaults to c).