WorksheetCollection.AddCopy
AddCopy(string)
Adds a worksheet to the collection and copies data from an existed worksheet.
public int AddCopy(string sheetName)
Parameter | Type | Description |
---|---|---|
sheetName | String | Name of source worksheet. |
Return Value
Worksheet
object index.
Exceptions
exception | condition |
---|---|
Exception | Specifies an invalid worksheet name. |
See Also
- class WorksheetCollection
- namespace Aspose.Cells.GridDesktop
- assembly Aspose.Cells.GridDesktop
AddCopy(int)
Adds a worksheet to the collection and copies data from an existed worksheet.
public int AddCopy(int srcSheetIndex)
Parameter | Type | Description |
---|---|---|
srcSheetIndex | Int32 | Index of source worksheet. |
Return Value
Worksheet
Index of of the new worksheet.
See Also
- class WorksheetCollection
- namespace Aspose.Cells.GridDesktop
- assembly Aspose.Cells.GridDesktop