[]
Specifies the text direction for text in a shape's text frame.
Used with Direction to control how text is oriented within a shape, including horizontal, vertical, rotated, and stacked layouts.
public enum TextDirection
Public Enum TextDirection
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 200, 200);
shape.TextFrame.TextRange.Paragraphs.Add("Hello");
shape.TextFrame.Direction = TextDirection.Vertical;
| Name | Description |
|---|---|
| Horizontal | Horizontal text direction. |
| Rotate270 | Rotate text by 270 angle. |
| Rotate90 | Rotate text by 90 angle. |
| Stacked | Stacked text and the text reading order is from left to right. |
| StackedRtl | Stacked text and the text reading order is from right to left. |
| Vertical | Vertical text direction. |