[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IPoints.Count

Count Property

Count

Gets the number of IPoint objects in the collection.

This property returns the number of data points in the parent chart series.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Item", "Sales"},
    {"Jan", 10},
    {"Feb", 20},
    {"Mar", 15}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
ISeries series = shape.Chart.SeriesCollection[0];
int count = series.Points.Count;