Version

Clone(String) Method

Duplicates the style and returns a deep copy.
Syntax
'Declaration
 
Public Function Clone( _
   ByVal name As String _
) As WorksheetTableStyle
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: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also