Back to Devexpress

TableStyleCollection.Remove(String) Method

officefileapi-devexpress-dot-spreadsheet-dot-tablestylecollection-dot-remove-x28-system-dot-string-x29.md

latest2.3 KB
Original Source

TableStyleCollection.Remove(String) Method

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

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Remove(
    string name
)
vb
Sub Remove(
    name As String
)

Parameters

NameTypeDescription
nameString

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

Spreadsheet Tables

TableStyleCollection Interface

TableStyleCollection Members

DevExpress.Spreadsheet Namespace