Click or drag to resize

XlsWorksheetsCollection AddCopy Method (Int32, WorksheetCopyType)

Add a copy of the specified worksheet to the worksheet collection.

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,
	WorksheetCopyType flags
)

Parameters

sheetIndex
Type: System Int32
Index of the workbook that should be copied
flags
Type: Spire.Xls WorksheetCopyType
Represents copy options flags.

Return Value

Type: IWorksheet
Returns copied sheet.
See Also