Aspose::Cells::WorksheetCollection::AddCopy method

WorksheetCollection::AddCopy(const U16String&) method

Adds a worksheet to the collection and copies data from an existed worksheet.

int32_t Aspose::Cells::WorksheetCollection::AddCopy(const U16String &sheetName)
ParameterTypeDescription
sheetNameconst U16String&Name of source worksheet.

ReturnValue

Worksheet object index.

See Also

WorksheetCollection::AddCopy(const char16_t*) method

Adds a worksheet to the collection and copies data from an existed worksheet.

int32_t Aspose::Cells::WorksheetCollection::AddCopy(const char16_t *sheetName)
ParameterTypeDescription
sheetNameconst char16_t*Name of source worksheet.

ReturnValue

Worksheet object index.

See Also

WorksheetCollection::AddCopy(int32_t) method

Adds a worksheet to the collection and copies data from an existed worksheet.

int32_t Aspose::Cells::WorksheetCollection::AddCopy(int32_t sheetIndex)
ParameterTypeDescription
sheetIndexint32_tIndex of source worksheet.

ReturnValue

Worksheet object index.

See Also

WorksheetCollection::AddCopy(const Vector <Worksheet>&, const Vector <U16String>&) method

Copy a group of worksheets.

void Aspose::Cells::WorksheetCollection::AddCopy(const Vector<Worksheet> &source, const Vector<U16String> &destSheetNames)
ParameterTypeDescription
sourceconst Vector <Worksheet>&The source worksheets.
destSheetNamesconst Vector <U16String>&The names of the copied sheets.

See Also