[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILegendEntry.Delete

Delete Method

Delete()

Deletes this legend entry.

Use this method to mark the current legend entry as deleted.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"A", 10},
    {"B", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"]);
ILegendEntry legendEntry = chart.Legend.LegendEntries[0];
legendEntry.Delete();