ChartDataWorksheetCollection

ChartDataWorksheetCollection class

Represents the collection of worksheets of chart data workbook.

public sealed class ChartDataWorksheetCollection : IChartDataWorksheetCollection

Properties

NameDescription
Count { get; }Returns the count. Read-only Int32.
IsSynchronized { get; }Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only Boolean.
Item { get; }Returns the worksheet by index.
SyncRoot { get; }Returns a synchronization root. Read-only Object.

Methods

NameDescription
CopyTo(Array, int)Copy to specified array.
GetEnumerator()Returns an enumerator that iterates through the collection.

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