Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

TableCollection.Remove(Table) Method

Removes the specified table from the collection.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll

Declaration

void Remove(
    Table table
)

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).

See Also