Worksheets

ChartDataWorkbook.Worksheets property

Gets a collection of worksheets.

public IChartDataWorksheetCollection Worksheets { get; }

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