TableCollection.Remove(Table) Method
Removes the specified table from the collection.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
table | Table | A Table object to be removed from the collection. |
#Remarks
The Remove method removes the specified table object from the Worksheet.Tables collection, and deletes data and formatting from worksheet cells. To remove a table from the collection by its index, use the TableCollection.RemoveAt method. To remove all tables from the worksheet, use the TableCollection.Clear method.
If you need to delete a table, but leave its data in a regular cell range and convert table formatting to cell direct formatting, use the Table.ConvertToRange method.
To create a table, use the TableCollection.Add method (see the How to: Create a Table example).