Rotation
Contents
[
Hide
]ChartAxisTitle.Rotation property
Gets or sets the rotation of the axis title in degrees.
public int Rotation { get; set; }
Remarks
The range of acceptable values is from -180 to 180 inclusive.
Examples
Shows how to set orientation and rotation of chart and axis titles.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape chartShape = builder.InsertChart(ChartType.Column, 400, 300);
Chart chart = chartShape.Chart;
chart.Title.Text = "Sample Chart";
chart.Title.Orientation = ShapeTextOrientation.Horizontal;
chart.Title.Rotation = 90;
// Before setting title properties, make sure that this title will be displayed.
chart.AxisX.Title.Show = true;
chart.AxisX.Title.Text = "X Axis";
chart.AxisX.Title.Orientation = ShapeTextOrientation.Horizontal;
chart.AxisX.Title.Rotation = -90;
doc.Save(ArtifactsDir + "Charts.TitleOrientation.docx");
See Also
- class ChartAxisTitle
- namespace Aspose.Words.Drawing.Charts
- assembly Aspose.Words