[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabels.Orientation

Orientation Property

Orientation

Gets or sets the text orientation.

Use this property to retrieve the current rotation angle applied to the data label text.

Declaration
int Orientation { get; set; }
Property Orientation As Integer
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Item", "Sales"},
    {"Tea", 10},
    {"Coffee", 20}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 200, 100, 300, 300);
IChart chart = shape.Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
ISeries series = chart.SeriesCollection[0];
series.HasDataLabels = true;
series.DataLabels.Orientation = 45;
int orientation = series.DataLabels.Orientation;