[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDisplayUnitLabel.Text

Text Property

Text

Gets or sets the text of this display unit label.

Use this property to retrieve the current caption shown for the display unit label on an axis.

Declaration
string Text { get; set; }
Property Text As String
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.Text = "Thousands";
string text = displayUnitLabel.Text;