[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabel.Delete

Delete Method

Delete()

Deletes this data label.

Removes the data label from its parent chart point or trendline.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 20},
    {"Mar", 15}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 360, 230);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
ISeries series = shape.Chart.SeriesCollection[0];
series.HasDataLabels = true;
IDataLabel dataLabel = series.Points[1].DataLabel;
dataLabel.Delete();