TextOrientation Enumeration |
Specifies orientation of text on a page, in a table cell or a text frame.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum TextOrientation
Public Enumeration TextOrientation
public enum class TextOrientation
Members
| Member name | Value | Description |
---|
| Horizontal | 0 |
Text is arranged horizontally (lr-tb).
|
| Downward | 1 |
Text is rotated 90 degrees to the right to appear from top to bottom (tb-rl).
|
| Upward | 3 |
Text is rotated 90 degrees to the left to appear from bottom to top (bt-lr).
|
| HorizontalRotatedFarEast | 4 |
Text is arranged horizontally, but Far East characters are rotated 90 degrees to the left (lr-tb-v).
|
| VerticalFarEast | 5 |
Far East characters appear vertical, other text is rotated 90 degrees
to the right to appear from top to bottom (tb-rl-v).
|
| VerticalRotatedFarEast | 7 |
Far East characters appear vertical, other text is rotated 90 degrees
to the right to appear from top to bottom vertically, then left to right horizontally (tb-lr-v).
|
ExamplesShows how to build a formatted table that contains 2 rows and 2 columns.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Table table = builder.StartTable();
builder.InsertCell();
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
builder.Write("This is row 1 cell 1");
builder.InsertCell();
builder.Write("This is row 1 cell 2");
builder.EndRow();
builder.InsertCell();
builder.RowFormat.Height = 100;
builder.RowFormat.HeightRule = HeightRule.Exactly;
builder.CellFormat.Orientation = TextOrientation.Upward;
builder.Writeln("This is row 2 cell 1");
builder.InsertCell();
builder.CellFormat.Orientation = TextOrientation.Downward;
builder.Writeln("This is row 2 cell 2");
builder.EndRow();
builder.EndTable();
See Also