[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILegend.Delete

Delete Method

Delete()

Deletes the legend from its parent chart.

After this method is called, the chart no longer displays this legend.

Declaration
void Delete()
Sub Delete()
Examples
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
ILegend legend = chart.Legend;
legend.Delete();