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

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

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