Represents a region of cells formatted as a table.
Constructors
Section titled "Constructors"WorksheetTable
new WorksheetTable(a: string, b: number, c: number, d: number, e: number, f: number): WorksheetTable Returns WorksheetTable
Properties
Section titled "Properties"$t: Type Accessors
Section titled "Accessors"comment
Section titled "comment"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
dataAreaRegion
Section titled "dataAreaRegion"Gets the [[WorksheetRegion]] which represents the region of cells in the data area of the table.
get dataAreaRegion(): WorksheetRegion
Returns WorksheetRegion
displayBandedColumns
Section titled "displayBandedColumns"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
displayBandedRows
Section titled "displayBandedRows"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
displayFirstColumnFormatting
Section titled "displayFirstColumnFormatting"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
displayLastColumnFormatting
Section titled "displayLastColumnFormatting"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
headerRowRegion
Section titled "headerRowRegion"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
isFilterUIVisible
Section titled "isFilterUIVisible"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
isHeaderRowVisible
Section titled "isHeaderRowVisible"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
isTotalsRowVisible
Section titled "isTotalsRowVisible"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
scope
Section titled "scope"Inherited from: NamedReferenceBase
Gets the scope of the named reference.
get scope(): any
Returns any
sortSettings
Section titled "sortSettings"Gets the settings which determine how the data within the table should be sorted.
get sortSettings(): SortSettings$1<WorksheetTableColumn>
Returns SortSettings$1<WorksheetTableColumn>
style
Section titled "style"Gets or sets the style to use on the [[WorksheetTable]].
get style(): WorksheetTableStyle
Returns WorksheetTableStyle
totalsRowRegion
Section titled "totalsRowRegion"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
wholeTableRegion
Section titled "wholeTableRegion"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
worksheet
Section titled "worksheet"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
Methods
Section titled "Methods"areaFormats
Section titled "areaFormats"Gets the format for the specified area. An [[IWorksheetCellFormat]] instance describing the appearance of the specified area.
areaFormats(area: WorksheetTableArea): IWorksheetCellFormat Parameters
- area:
WorksheetTableAreaThe area for which to get the format.
Returns IWorksheetCellFormat
clearFilters
Section titled "clearFilters"Clears all filters from the columns in the table.
clearFilters(): void Returns void
clearSortConditions
Section titled "clearSortConditions"Clears all sort conditions from the columns in the table.
clearSortConditions(): void Returns void
columns
Section titled "columns"Gets the [[WorksheetTableColumn]] at the specified index.
columns(index: number): WorksheetTableColumn Parameters
- index:
numberThe 0-based index of the column to get.
Returns WorksheetTableColumn
deleteColumns
Section titled "deleteColumns"Deletes one or more columns from the table
deleteColumns(tableColumnIndex: number, count: number): void Parameters
- tableColumnIndex:
numberThe deletion start relative to the first column in the table.
- count:
numberThe number of columns to delete.
Returns void
deleteDataRows
Section titled "deleteDataRows"Deletes one or more data rows from the table
deleteDataRows(dataRowIndex: number, count: number): void Parameters
- dataRowIndex:
numberThe deletion start relative to the first row in the [[dataAreaRegion]].
- count:
numberThe number of rows to delete.
Returns void
insertColumns
Section titled "insertColumns"Inserts one or more columns into the table
insertColumns(tableColumnIndex: number, count: number): void Parameters
- tableColumnIndex:
numberThe insertion point relative to the first column in the table.
- count:
numberThe number of columns to insert
Returns void
insertDataRows
Section titled "insertDataRows"Inserts one or more data rows into the table
insertDataRows(dataRowIndex: number, count: number): void Parameters
- dataRowIndex:
numberThe insertion point relative to the first row in the [[dataAreaRegion]].
- count:
numberThe number of columns to insert
Returns void
reapplyFilters
Section titled "reapplyFilters"Re-filters all data cells in the table based on the filters from the columns in the table.
reapplyFilters(): void Returns void
reapplySortConditions
Section titled "reapplySortConditions"Re-sorts all data cells in the table based on the sort conditions from the columns in the table.
reapplySortConditions(): void Returns void
resize
Section titled "resize"Resizes the table to a new range of data on the worksheet.
resize(headerAndDataRegion: WorksheetRegion): void Parameters
- headerAndDataRegion:
WorksheetRegionThe 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
toString
Section titled "toString"Gets the string representation of the table.
toString(): string Returns string
staticInit
Section titled "staticInit"staticInit(): void