Skip to main content
Row

TableStyleCollection.Remove(String) Method

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

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

void Remove(
    string name
)

Parameters

Name Type Description
name String

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

Remarks

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

Important

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