Back to Devexpress

TableCollection.Remove(Table) Method

officefileapi-devexpress-dot-spreadsheet-dot-tablecollection-dot-remove-x28-devexpress-dot-spreadsheet-dot-table-x29.md

latest2.3 KB
Original Source

TableCollection.Remove(Table) Method

Removes the specified table from the collection.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Remove(
    Table table
)
vb
Sub Remove(
    table As Table
)

Parameters

NameTypeDescription
tableTable

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

Spreadsheet Tables

TableCollection Interface

TableCollection Members

DevExpress.Spreadsheet Namespace