IChartDataWorkbookWorksheets Property

Gets a collection of worksheets.

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 22.4.0.0 (22.4)
Syntax
IChartDataWorksheetCollection Worksheets { get; }

Property Value

Type: IChartDataWorksheetCollection
Examples
Example:
[C#]
using (Presentation pres = new Presentation())
{
    IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.Pie, 50, 50, 400, 500);
    IChartDataWorkbook workbook =  chart.ChartData.ChartDataWorkbook;
    foreach (IChartDataWorksheet worksheet in workbook.Worksheets)
    {
        string worksheetName = worksheet.Name;
    }
}
See Also