[]
Gets the direction of this error bar.
The returned value indicates whether this error bar applies to X values or Y values in the chart series. For scatter series, error bars can exist in both directions.
ErrorBarDirection Direction { get; }
ReadOnly Property Direction As ErrorBarDirection
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"]);
ISeries series = chart.SeriesCollection[0];
series.HasErrorBars = true;
ErrorBarDirection direction = series.YErrorBar.Direction;