[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IErrorBar.Delete

Delete Method

Delete()

Deletes this error bar from its chart series.

Use this method to remove an existing X or Y error bar that was obtained from a series.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 12}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
ISeries series = chart.SeriesCollection[0];
series.HasErrorBars = true;
IErrorBar errorBar = series.YErrorBar;
errorBar.Delete();