nonGridRangeContainedIn
function nonGridRangeContainedIn(gridRange: GridRange, containerGridRange: GridRange): boolean;
The negation of isGridRangeContainedIn, written so that a guard clause reads as a sentence: a range that overlaps only partly, or lies elsewhere entirely, both answer true.
Parameters
Parameter | Type | Description |
|---|---|---|
|
| The grid range to test. |
|
| The grid range expected to contain it. |
Returns
boolean — true when the first range is not inside the second.
Examples
Checking containment
const inner = { startRowIndex: 1, endRowIndex: 2, startColumnIndex: 1, endColumnIndex: 2 };
const outer = { startRowIndex: 0, endRowIndex: 5, startColumnIndex: 0, endColumnIndex: 5 };
nonGridRangeContainedIn(outer, inner); // => true
See also
Source
23 September 2026
This documentation was generated with AI (Claude) from the library's source code.