WorksheetCollection.AddCopy
Contents
[
Hide
]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 |
---|---|
CellsException | Specifies an invalid worksheet name. |
See Also
- class WorksheetCollection
- namespace Aspose.Cells
- assembly Aspose.Cells
AddCopy(int)
Adds a worksheet to the collection and copies data from an existed worksheet.
public int AddCopy(int sheetIndex)
Parameter | Type | Description |
---|---|---|
sheetIndex | Int32 | Index of source worksheet. |
Return Value
Worksheet
object index.
See Also
- class WorksheetCollection
- namespace Aspose.Cells
- assembly Aspose.Cells
AddCopy(Worksheet[], string[])
Copy a group of worksheets.
public void AddCopy(Worksheet[] source, string[] destSheetNames)
Parameter | Type | Description |
---|---|---|
source | Worksheet[] | The source worksheets. |
destSheetNames | String[] | The names of the copied sheets. |
See Also
- class Worksheet
- class WorksheetCollection
- namespace Aspose.Cells
- assembly Aspose.Cells