[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartBars.Delete

Delete Method

Delete()

Deletes this chart bars object.

Use this method on an IChartBars instance returned by UpBars or DownBars.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:C4"].Value = new object[,] {
    {"Month", "Sales 2023", "Sales 2024"},
    {"Jan", 12, 18},
    {"Feb", 20, 15},
    {"Mar", 16, 22}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Line, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C4"], RowCol.Columns, true, true);
IChartGroup chartGroup = chart.ChartGroups[0];
chartGroup.HasUpDownBars = true;
chartGroup.UpBars.Delete();