[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Count

Count Property

Count

Gets the number of ISeries objects in the collection.

Use this property to determine how many data series are currently contained in the parent chart.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:C3"].Value = new object[,] {
    {"Month", "Sales", "Profit"},
    {"Jan", 100, 35},
    {"Feb", 120, 40}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C3"], RowCol.Columns, true, true);
int count = chart.SeriesCollection.Count;