[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITable.Delete

Delete Method

Delete()

Deletes this ITable object and clears the cell data from the worksheet.

Use this method to remove both the table definition and the cells covered by the table. To keep the data and remove only the table object, use ConvertToRange() instead.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"Test", 100},
    {"Sample", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
table.Delete();