[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IErrorBar.Type

Type Property

Type

Gets or sets which parts of the error bar are included.

The returned ErrorBarInclude value specifies whether the error bar shows positive values, negative values, both, or no range.

Declaration
ErrorBarInclude Type { get; set; }
Property Type As ErrorBarInclude
Examples
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.Type = ErrorBarInclude.Both;
ErrorBarInclude type = errorBar.Type;