[]
Deletes this series from its chart.
After this method is called, the current series is removed from the chart's series collection.
void Delete()
Sub Delete()
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();
| Type | Condition |
|---|---|
| InvalidOperationException | if the series belongs to a Pareto chart. |