Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TableStyle.Duplicate(String) Method

Creates a copy of this table or PivotTable style and specifies the new style name.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

TableStyle Duplicate(
    string name
)

#Parameters

Name Type Description
name String

A unique name of the new style. This value is assigned to the TableStyle.Name property.

#Returns

Type Description
TableStyle

A copy of the current style.

#Remarks

You can create a custom style based on an existing table or PivotTable style (for example, a built-in style). Call the TableStyle.Duplicate method to create a copy of the specified style. This method returns a TableStyle object that allows you to define format settings for the new style.

See Also