ExcelWorksheetInsertCopy Method

Note: This API is now obsolete.

Inserts a copy of an existing worksheet before the current worksheet.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
[ObsoleteAttribute("Use 'GemBox.Spreadsheet.ExcelWorksheetCollection.InsertCopy(System.Int32, System.String, GemBox.Spreadsheet.ExcelWorksheet)' method with 'GemBox.Spreadsheet.ExcelWorksheet.Index' as first parameter instead. For more info, see http://www.gemboxsoftware.com/spreadsheet/help/html/Obsolete_Members.htm#ExcelWorksheetInsertCopy.")]
public ExcelWorksheet InsertCopy(
	string destinationWorksheetName,
	ExcelWorksheet sourceWorksheet
)

Parameters

destinationWorksheetName
Type: SystemString
Name of the new worksheet.
sourceWorksheet
Type: GemBox.SpreadsheetExcelWorksheet
Source worksheet.

Return Value

Type: ExcelWorksheet
Newly created worksheet.
See Also