GetWorksheetNames()

ExcelDataWorkbook::GetWorksheetNames() method

Retrieves the names of all worksheets contained in the Excel workbook.

System::SharedPtr<System::Collections::Generic::IList<System::String>> Aspose::Slides::Excel::ExcelDataWorkbook::GetWorksheetNames() override

Return Value

A list of worksheet names

Remarks

Example:

System::SharedPtr<IExcelDataWorkbook> wb = System::MakeObject<ExcelDataWorkbook>(testFile);
auto sheetNames = wb->GetWorksheetNames();
for (auto&& name : sheetNames)
{
    System::Console::WriteLine(name);
}

See Also