Represents a rectangular region of cells on a worksheet.

WorksheetRegion

new WorksheetRegion(worksheet: Worksheet, firstRow: number, firstColumn: number, lastRow: number, lastColumn: number): WorksheetRegion

Returns WorksheetRegion

$t: Type

Gets the index of the first column in the region. The index of the first column in the region.

get firstColumn(): number

Returns number

Gets the index of the first row in the region. The index of the first row in the region.

get firstRow(): number

Returns number

Gets the index of the last column in the region. The index of the last column in the region.

get lastColumn(): number

Returns number

Gets the index of the last row in the region. The index of the last row in the region.

get lastRow(): number

Returns number

Gets the worksheet on which the region resides. The worksheet on which the region resides or null if the region has been shifted off the worksheet.

get worksheet(): Worksheet

Returns Worksheet

Applies a array formula to the region of cells.

applyArrayFormula(value: string): void

Parameters

  • value: string

    The array formula to parse and apply to the region.

Returns void

Applies a formula to the region of cells.

applyFormula(value: string): void

Parameters

  • value: string

    The formula to parse and apply to the region.

Returns void

Determines whether the specified value equals this [[WorksheetRegion]].

equals(obj: any): boolean

Parameters

  • obj: any

    The value to test for equality.

Returns boolean

Formats the region as a table and adds an associated [[WorksheetTable]] to the [[Worksheet.tables]] collection.

formatAsTable(tableHasHeaders: boolean): WorksheetTable

Parameters

  • tableHasHeaders: boolean

    A value which indicates whether the top row of the region contains the headers for the table.

Returns WorksheetTable

Gets the bounds of the region in twips (1/20th of a point).

getBoundsInTwips(): IgRect

Returns IgRect

getEnumerator(): IEnumerator$1<WorksheetCell>

Returns IEnumerator$1<WorksheetCell>

Gtes the hash code for the [[WorksheetRegion]].

getHashCode(): number

Returns number

Gets the string representation of the range of cells in the region.

toString(): string

Returns string