IChartDataWorksheetCollection

IChartDataWorksheetCollection interface

Represents the collection of worksheets of chart data workbook.

public interface IChartDataWorksheetCollection : IGenericCollection<IChartDataWorksheet>

Properties

NameDescription
Item { get; }Returns the worksheet by index.

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