Click or drag to resize

XlsWorksheetsCollection AddCopy Method (Int32)

Adds a copy of the worksheet at the specified index to the workbook.

Namespace: Spire.Xls.Core.Spreadsheet.Collections
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public IWorksheet AddCopy(
	int sheetIndex
)

Parameters

sheetIndex
Type: System Int32
The zero-based index of the worksheet to copy.

Return Value

Type: IWorksheet
The newly created copy of the worksheet.
See Also