Back to Devexpress

TableStyle.Duplicate(String) Method

officefileapi-devexpress-dot-spreadsheet-dot-tablestyle-dot-duplicate-x28-system-dot-string-x29.md

latest1.8 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
TableStyle Duplicate(
    string name
)
vb
Function Duplicate(
    name As String
) As TableStyle

Parameters

NameTypeDescription
nameString

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

|

Returns

TypeDescription
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

TableStyle Interface

TableStyle Members

DevExpress.Spreadsheet Namespace