[]
Gets the IChartFormat object for this error bar.
Use the returned format object to access and modify the appearance of the error bar, error bar, such as line color and line style.
IChartFormat Format { get; }
ReadOnly Property Format As IChartFormat
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;
IChartFormat format = chart.SeriesCollection[0].YErrorBar.Format;
format.Line.Color.RGB = Color.Red;