Client-Side API Reference > FlexGrid > wijmo.grid > CellRange Class |
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 corresponds to a single cell (beginning and ending rows have the same index, and beginning and ending columns have the same index).
Checks whether the range contains valid row and column indices (row and column values are zero or greater).
contains(r: any, c?: number): boolean
Checks whether the range contains another range or a specific cell.
The CellRange object or row index to find.
The column index (required if the r parameter is not a CellRange object).
containsColumn(c: number): boolean
Checks whether the range contains a given column.
The index of the column to find.
containsRow(r: number): boolean
Checks whether the range contains a given row.
The index of the row to find.
equals(rng: CellRange): boolean
Checks whether the range equals another range.
The CellRange object to compare to this range.
getRenderSize(p: GridPanel): Size
Gets the rendered size of this range.
intersects(rng: CellRange): boolean
Checks whether the range intersects another range.
The CellRange object to check.
intersectsColumn(rng: CellRange): boolean
Checks whether the range intersects the columns in another range.
The CellRange object to check.
intersectsRow(rng: CellRange): boolean
Checks whether the range intersects the rows in another range.
The CellRange object to check.
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).
Represents a rectangular group of cells defined by two row indices and two column indices.