.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

TableStyleCollection.Remove(String) Method

Removes the table or PivotTable style with the specified name from the collection.

Namespace: DevExpress.Spreadsheet

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


void Remove(
    string name


Name Type Description
name String

A String value that specifies the name of the table style (TableStyle.Name) to be removed from the collection.


After a style is deleted, all tables or pivot tables to which this style is applied will be formatted with the default style (defined by the TableStyleCollection.DefaultStyle property for tables and the TableStyleCollection.DefaultPivotStyle property for pivot tables).


Built-in styles cannot be removed. To check whether a table or pivot table style is built-in or custom, use the TableStyle.BuiltIn property.

To add a new table or pivot table style to the collection, use the TableStyleCollection.Add method.

See Also