Worksheets

IChartDataWorkbook.Worksheets property

Obtient une collection de feuilles de calcul.

public IChartDataWorksheetCollection Worksheets { get; }

Exemples

Exemple :

[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;
    }
}

Voir également