[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDisplayUnitLabel.Delete

Delete Method

Delete()

Deletes this display unit label from its parent axis.

After this method is called, the display unit label is no longer shown on the axis.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 1200},
    {"Feb", 2400}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, worksheet.Range["A1:B3"]).Chart;
IAxis axis = chart.Axes.Item(AxisType.Value, AxisGroup.Primary);
axis.DisplayUnit = DisplayUnit.Thousands;
IDisplayUnitLabel displayUnitLabel = axis.DisplayUnitLabel;
displayUnitLabel.Delete();