[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabel.Text

Text Property

Text

Gets or sets the text of the data label.

Returns the current text displayed by the data label. If the data label uses automatic text, this property returns the generated label text.

Declaration
string Text { get; set; }
Property Text As String
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 360, 220).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
IDataLabel dataLabel = chart.SeriesCollection[0].DataLabels[0];
string text = dataLabel.Text;