Version

Clone(String) Method

Duplicates the style and returns a deep copy.
Syntax
public WorksheetTableStyle Clone( 
   string name
)

Parameters

name
The name to give to the cloned style.

Return Value

The clone of the style.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionname is null or empty.
Remarks

A cloned style must be added to the CustomTableStyles collection before it can be applied to a WorksheetTable.

The only value not cloned from the style is the IsCustom value. Cloning a standard style creates a custom style with the same style settings which can then be changed.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also