[]
Gets or sets the text orientation of the data label.
The returned value is the rotation angle of the data label text, in degrees.
int Orientation { get; set; }
Property Orientation As Integer
worksheet.Range["A1:B3"].Value = new object[,] {
{"Name", "Value"},
{"A", 10},
{"B", 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;
IPoint point = series.Points[0];
point.HasDataLabel = true;
IDataLabel dataLabel = point.DataLabel;
dataLabel.Text = "Q1";
dataLabel.Orientation = 45;
int orientation = dataLabel.Orientation;