[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataTable.Delete

Delete Method

Delete()

Deletes this chart data table.

After this method is called, the data table is removed from its parent IChart.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:C3"].Value = new object[,] {
    {"Month", "Sales", "Profit"},
    {"Jan", 100, 20},
    {"Feb", 120, 25}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C3"]);
chart.HasDataTable = true;
chart.DataTable.Delete();