orientation property

AxisTickLabels.orientation property

Gets or sets the orientation of the tick label text.

get orientation(): Aspose.Words.Drawing.ShapeTextOrientation

Remarks

The default value is ShapeTextOrientation.Horizontal.

Note that some ShapeTextOrientation values do not affect the orientation of tick label text in value axes.

Examples

Shows how to change orientation and rotation for axis tick labels.

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

// Insert a column chart.
let shape = builder.insertChart(aw.Drawing.Charts.ChartType.Column, 432, 252);
let xTickLabels = shape.chart.axisX.tickLabels;
let yTickLabels = shape.chart.axisY.tickLabels;

// Set axis tick label orientation and rotation.
xTickLabels.orientation = aw.Drawing.ShapeTextOrientation.VerticalFarEast;
xTickLabels.rotation = -30;
yTickLabels.orientation = aw.Drawing.ShapeTextOrientation.Horizontal;
yTickLabels.rotation = 45;

doc.save(base.artifactsDir + "Charts.TickLabelsOrientationRotation.docx");

See Also