[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartTitle.Delete

Delete Method

Delete()

Deletes the chart title object.

Use this method to remove the title from the chart.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:B4"].Value = new object[,] { { "Month", "Sales" }, { "Jan", 12 }, { "Feb", 18 }, { "Mar", 15 } };
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
chart.HasTitle = true;
chart.ChartTitle.Text = "Sales Analysis";
IChartTitle title = chart.ChartTitle;
title.Delete();