[]
Clears the formatting of this error bar.
Use this method to remove custom formatting that has been applied to the error bar.
void ClearFormats()
Sub ClearFormats()
worksheet.Range["A1:B4"].Value = new object[,] {{"X", "Y"}, {1, 2}, {2, 4}, {3, 3}};
IChart chart = worksheet.Shapes.AddChart(ChartType.XYScatter, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
chart.SeriesCollection[0].HasErrorBars = true;
IErrorBar errorBar = chart.SeriesCollection[0].YErrorBar;
errorBar.Format.Line.Color.RGB = Color.Red;
errorBar.ClearFormats();