workbookTable 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 column | workbookTableColumn | Create a new TableColumn by posting to the columns collection. |
List columns | workbookTableColumn collection | Get a TableColumn object collection. |
Create row | workbookTableRow | Create a new TableRow by posting to the rows collection. |
List rows | workbookTableRow collection | Get a TableRow object collection. |
Update table | 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. |
Get 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 table | None | Deletes the table. |
Reapplyfilters | None | Reapplies all the filters currently on the table. |
List | workbookTable collection | Get table object collection. |
Add table | 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
The following JSON representation shows the resource type.
{
"highlightFirstColumn": true,
"highlightLastColumn": true,
"id": "String (identifier)",
"name": "String",
"showBandedColumns": true,
"showBandedRows": true,
"showFilterButton": true,
"showHeaders": true,
"showTotals": true,
"style": "String",
"legacyId": "String"
}
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för