Skip to main content
A newer version of this page is available. .

ShapeTextFormat.TextDirection Property

Gets or sets the text direction in a chart element.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

ShapeTextDirection TextDirection { get; set; }

Property Value

Type Description
ShapeTextDirection

A ShapeTextDirection enumeration value specifying the direction of the text displayed in a chart element.

Available values:

Name Description
Horizontal

Specifies that the horizontal text should be used.

Rotated90

Specifies that the text should be rotated by 90 degrees and oriented from top to bottom.

Rotated270

Specifies that the text should be rotated by 270 degrees and oriented from bottom to top.

Stacked

Specifies that text characters should be positioned one below the other.

Remarks

Use the TextDirection property to specify the direction of the text displayed in the following chart elements:

  • chart title defined by the ChartTitle object which can be accessed via the ChartObject.Title property;
  • axis title whose display settings are defined by the ChartTitleOptions object accessible via the Axis.Title property;
  • tick-mark labels displayed on the axis (to change the text direction in the tick-mark labels, use the TextDirection property of the Axis object);
  • data labels whose options are provided by the DataLabelOptions interface accessible via the ChartView.DataLabels property;
  • trendline label which is defined by the TrendlineLabel object accessible via the Trendline.Label property;
  • display unit label of the value axis (to change the text direction in the display unit label, use the TextDirection property of the DisplayUnitOptions object).

Note

The TextDirection property has no effect on the visual appearance of a chart when the document is loaded in the SpreadsheetControl. However, the property can be accessed in code, exported in supported formats and visualized in Microsoft Excel.

See Also