Back to DOM
TextDirectionValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the text flow direction (rotation and reading order) of a paragraph, cell, or section.
Remarks
The values combine a flow direction (lr, tb, bt, rl) with an optional vertical modifier () that indicates whether the letters are rotated alongside the flow. They are commonly used in East Asian typography and for rotated text in tables. V
Examples
csharp
1// 1. Left-to-right, top-to-bottom
2var dir = TextDirectionValues.lrTb;
3
csharp
1// 2. Right-to-left (RTL)
2var dir = TextDirectionValues.rl;
3
csharp
1// 3. Top-to-bottom (CJK vertical)
2var dir = TextDirectionValues.tb;
3
csharp
1// 4. Left-to-right with vertical modifier
2var dir = TextDirectionValues.lrV;
3
Fields
btLr
Bottom-to-top, left-to-right.
lr
Left-to-right.
lrTb
Left-to-right, top-to-bottom.
lrTbV
Left-to-right, top-to-bottom, vertical.
lrV
Left-to-right, vertical.
rl
Right-to-left (bidirectional scripts).
rlV
Right-to-left, vertical.
tb
Top-to-bottom (East Asian vertical).
tbLrV
Top-to-bottom, left-to-right, vertical.
tbRl
Top-to-bottom, right-to-left.
tbRlV
Top-to-bottom, right-to-left, vertical.
tbV
Top-to-bottom, vertical.