[]
Gets or sets the text direction of the data labels.
Use this property to determine how the data label text is oriented, such as horizontal, vertical, or rotated layout.
TextDirection Direction { get; set; }
Property Direction As TextDirection
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 10},
{"Feb", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns);
ISeries series = chart.SeriesCollection[0];
series.HasDataLabels = true;
IDataLabels dataLabels = series.DataLabels;
dataLabels.Direction = TextDirection.Vertical;
TextDirection direction = dataLabels.Direction;