GetWorksheetNames()

IExcelDataWorkbook::GetWorksheetNames() method

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

virtual System::SharedPtr<System::Collections::Generic::IList<System::String>> Aspose::Slides::Excel::IExcelDataWorkbook::GetWorksheetNames()=0

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