Represents a region of cells formatted as a table.

WorksheetTable

new WorksheetTable(a: string, b: number, c: number, d: number, e: number, f: number): WorksheetTable

Returns WorksheetTable

Inherited from: NamedReferenceBase

Gets or sets the comment associated with the named reference or table. The comment associated with the named reference or table.

get comment(): string

Returns string

set comment(a: string): void

Parameters

  • a: string

Returns void

Gets the [[WorksheetRegion]] which represents the region of cells in the data area of the table.

get dataAreaRegion(): WorksheetRegion

Returns WorksheetRegion

Gets or sets the value which indicates whether the alternate column format should be applied to the appropriate columns of the [[WorksheetTable]].

get displayBandedColumns(): boolean

Returns boolean

set displayBandedColumns(a: boolean): void

Parameters

  • a: boolean

Returns void

Gets or sets the value which indicates whether the alternate row format should be applied to the appropriate rows of the [[WorksheetTable]].

get displayBandedRows(): boolean

Returns boolean

set displayBandedRows(a: boolean): void

Parameters

  • a: boolean

Returns void

Gets or sets the value which indicates whether the first column format should be applied to the appropriate column of the [[WorksheetTable]].

get displayFirstColumnFormatting(): boolean

Returns boolean

set displayFirstColumnFormatting(a: boolean): void

Parameters

  • a: boolean

Returns void

Gets or sets the value which indicates whether the last column format should be applied to the appropriate column of the [[WorksheetTable]].

get displayLastColumnFormatting(): boolean

Returns boolean

set displayLastColumnFormatting(a: boolean): void

Parameters

  • a: boolean

Returns void

Gets the [[WorksheetRegion]] which represents the region of cells in the header row of the table. A WorksheetRegion which represents the region of cells in the header row of the table or null if the header row is not visible.

get headerRowRegion(): WorksheetRegion

Returns WorksheetRegion

Gets or sets the value indicating whether to allow filtering and show filter buttons in the table headers.

get isFilterUIVisible(): boolean

Returns boolean

set isFilterUIVisible(a: boolean): void

Parameters

  • a: boolean

Returns void

Gets or sets the value which indicates whether the row containing column headers should be displayed.

get isHeaderRowVisible(): boolean

Returns boolean

set isHeaderRowVisible(a: boolean): void

Parameters

  • a: boolean

Returns void

Gets or sets the value which indicates whether the row containing column totals should be displayed.

get isTotalsRowVisible(): boolean

Returns boolean

set isTotalsRowVisible(a: boolean): void

Parameters

  • a: boolean

Returns void

Inherited from: NamedReferenceBase

Gets or sets the name of the reference.

get name(): string

Returns string

set name(a: string): void

Parameters

  • a: string

Returns void

Inherited from: NamedReferenceBase

Gets the scope of the named reference.

get scope(): any

Returns any

Gets the settings which determine how the data within the table should be sorted.

get sortSettings(): SortSettings$1<WorksheetTableColumn>

Returns SortSettings$1<WorksheetTableColumn>

Gets or sets the style to use on the [[WorksheetTable]].

get style(): WorksheetTableStyle

Returns WorksheetTableStyle

set style(a: WorksheetTableStyle): void

Parameters

Returns void

Gets the [[WorksheetRegion]] which represents the region of cells in the totals row of the table. A WorksheetRegion which represents the region of cells in the totals row of the table or null if the totals row is not visible.

get totalsRowRegion(): WorksheetRegion

Returns WorksheetRegion

Gets the [[WorksheetRegion]] which represents the region of cells in the whole table, including the header and totals rows, if visible.

get wholeTableRegion(): WorksheetRegion

Returns WorksheetRegion

Gets the [[worksheet]] to which the table belongs. The Worksheet to which the table belongs or null if the table has been removed from the Worksheet.

get worksheet(): Worksheet

Returns Worksheet

Gets the format for the specified area. An [[IWorksheetCellFormat]] instance describing the appearance of the specified area.

areaFormats(area: WorksheetTableArea): IWorksheetCellFormat

Parameters

Returns IWorksheetCellFormat

Clears all filters from the columns in the table.

clearFilters(): void

Returns void

Clears all sort conditions from the columns in the table.

clearSortConditions(): void

Returns void

Gets the [[WorksheetTableColumn]] at the specified index.

columns(index: number): WorksheetTableColumn

Parameters

  • index: number

    The 0-based index of the column to get.

Returns WorksheetTableColumn

Deletes one or more columns from the table

deleteColumns(tableColumnIndex: number, count: number): void

Parameters

  • tableColumnIndex: number

    The deletion start relative to the first column in the table.

  • count: number

    The number of columns to delete.

Returns void

Deletes one or more data rows from the table

deleteDataRows(dataRowIndex: number, count: number): void

Parameters

  • dataRowIndex: number

    The deletion start relative to the first row in the [[dataAreaRegion]].

  • count: number

    The number of rows to delete.

Returns void

Inserts one or more columns into the table

insertColumns(tableColumnIndex: number, count: number): void

Parameters

  • tableColumnIndex: number

    The insertion point relative to the first column in the table.

  • count: number

    The number of columns to insert

Returns void

Inserts one or more data rows into the table

insertDataRows(dataRowIndex: number, count: number): void

Parameters

  • dataRowIndex: number

    The insertion point relative to the first row in the [[dataAreaRegion]].

  • count: number

    The number of columns to insert

Returns void

Re-filters all data cells in the table based on the filters from the columns in the table.

reapplyFilters(): void

Returns void

Re-sorts all data cells in the table based on the sort conditions from the columns in the table.

reapplySortConditions(): void

Returns void

Resizes the table to a new range of data on the worksheet.

resize(headerAndDataRegion: WorksheetRegion): void

Parameters

  • headerAndDataRegion: WorksheetRegion

    The new region of headers (if currently visible) and data for the table, which must contain at least one data row, and overlap and have the same top as the current table region.

Returns void

Gets the string representation of the table.

toString(): string

Returns string

staticInit(): void

Returns void