[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ISeries.Delete

Delete Method

Delete()

Deletes this series from its chart.

After this method is called, the current series is removed from the chart's series collection.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:C4"].Value = new object[,] {{"Month", "Sales", "Target"}, {"Jan", 12, 30}, {"Feb", 18, 45}, {"Mar", 15, 40}};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C4"]);
ISeries series = chart.SeriesCollection[1];
series.Delete();
Exceptions
Type Condition
InvalidOperationException

if the series belongs to a Pareto chart.