Table resource type

Namespace: microsoft.graph

Represents an Excel table.

Methods

Method Return Type Description
Get Table WorkbookTable Read properties and relationships of table object.
Create TableColumn WorkbookTableColumn Create a new TableColumn by posting to the columns collection.
List columns WorkbookTableColumn collection Get a TableColumn object collection.
Create TableRow WorkbookTableRow Create a new TableRow by posting to the rows collection.
List rows WorkbookTableRow collection Get a TableRow object collection.
Update WorkbookTable Update Table object.
Databodyrange Range Gets the range object associated with the data body of the table.
Headerrowrange Range Gets the range object associated with header row of the table.
Range Range Gets the range object associated with the entire table.
Totalrowrange Range Gets the range object associated with totals row of the table.
Clearfilters None Clears all the filters currently applied on the table.
Converttorange Range Converts the table into a normal range of cells. All data is preserved.
Delete None Deletes the table.
Reapplyfilters None Reapplies all the filters currently on the table.
List WorkbookTable collection Get table object collection.
Add WorkbookTable Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown.

Properties

Property Type Description
highlightFirstColumn Boolean Indicates whether the first column contains special formatting.
highlightLastColumn Boolean Indicates whether the last column contains special formatting.
id string Returns a value that uniquely identifies the table in a given workbook. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only.
legacyId String Legacy ID used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only.
name string Name of the table.
showBandedRows Boolean Indicates whether the rows show banded formatting in which odd rows are highlighted differently from even ones to make reading the table easier.
showBandedColumns Boolean Indicates whether the columns show banded formatting in which odd columns are highlighted differently from even ones to make reading the table easier.
showFilterButton Boolean Indicates whether the filter buttons are visible at the top of each column header. Setting this is only allowed if the table contains a header row.
showHeaders boolean Indicates whether the header row is visible or not. This value can be set to show or remove the header row.
showTotals boolean Indicates whether the total row is visible or not. This value can be set to show or remove the total row.
style string Constant value that represents the Table style. The possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified.

Relationships

Relationship Type Description
columns WorkbookTableColumn collection Represents a collection of all the columns in the table. Read-only.
rows WorkbookTableRow collection Represents a collection of all the rows in the table. Read-only.
sort WorkbookTableSort Represents the sorting for the table. Read-only.
worksheet WorkbookWorksheet The worksheet containing the current table. Read-only.

JSON representation

Here's a JSON representation of the resource.

{
  "highlightFirstColumn": true,
  "highlightLastColumn": true,
  "id": "String (identifier)",
  "name": "String",
  "showBandedColumns": true,
  "showBandedRows": true,
  "showFilterButton": true,
  "showHeaders": true,
  "showTotals": true,
  "style": "String",
  "legacyId": "String"
}