[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDisplayUnitLabel.TextFrame

TextFrame Property

TextFrame

Gets the ITextFrame object for the display unit label.

Declaration
ITextFrame TextFrame { get; }
ReadOnly Property TextFrame As ITextFrame
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;
ITextFrame textFrame = displayUnitLabel.TextFrame;
textFrame.TextRange.Text = "Thousands";