TextDirection.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. namespace Terminal.Gui;
  2. /// <summary>Text direction enumeration, controls how text is displayed.</summary>
  3. /// <remarks>
  4. /// <para>TextDirection [H] = Horizontal [V] = Vertical</para>
  5. /// <table>
  6. /// <tr>
  7. /// <th>TextDirection</th> <th>Description</th>
  8. /// </tr>
  9. /// <tr>
  10. /// <td>LeftRight_TopBottom [H]</td> <td>Normal</td>
  11. /// </tr>
  12. /// <tr>
  13. /// <td>TopBottom_LeftRight [V]</td> <td>Normal</td>
  14. /// </tr>
  15. /// <tr>
  16. /// <td>RightLeft_TopBottom [H]</td> <td>Invert Text</td>
  17. /// </tr>
  18. /// <tr>
  19. /// <td>TopBottom_RightLeft [V]</td> <td>Invert Lines</td>
  20. /// </tr>
  21. /// <tr>
  22. /// <td>LeftRight_BottomTop [H]</td> <td>Invert Lines</td>
  23. /// </tr>
  24. /// <tr>
  25. /// <td>BottomTop_LeftRight [V]</td> <td>Invert Text</td>
  26. /// </tr>
  27. /// <tr>
  28. /// <td>RightLeft_BottomTop [H]</td> <td>Invert Text + Invert Lines</td>
  29. /// </tr>
  30. /// <tr>
  31. /// <td>BottomTop_RightLeft [V]</td> <td>Invert Text + Invert Lines</td>
  32. /// </tr>
  33. /// </table>
  34. /// </remarks>
  35. public enum TextDirection
  36. {
  37. /// <summary>Normal horizontal direction. <code>HELLO<br/>WORLD</code></summary>
  38. LeftRight_TopBottom,
  39. /// <summary>Normal vertical direction. <code>H W<br/>E O<br/>L R<br/>L L<br/>O D</code></summary>
  40. TopBottom_LeftRight,
  41. /// <summary>This is a horizontal direction. <br/> RTL <code>OLLEH<br/>DLROW</code></summary>
  42. RightLeft_TopBottom,
  43. /// <summary>This is a vertical direction. <code>W H<br/>O E<br/>R L<br/>L L<br/>D O</code></summary>
  44. TopBottom_RightLeft,
  45. /// <summary>This is a horizontal direction. <code>WORLD<br/>HELLO</code></summary>
  46. LeftRight_BottomTop,
  47. /// <summary>This is a vertical direction. <code>O D<br/>L L<br/>L R<br/>E O<br/>H W</code></summary>
  48. BottomTop_LeftRight,
  49. /// <summary>This is a horizontal direction. <code>DLROW<br/>OLLEH</code></summary>
  50. RightLeft_BottomTop,
  51. /// <summary>This is a vertical direction. <code>D O<br/>L L<br/>R L<br/>O E<br/>W H</code></summary>
  52. BottomTop_RightLeft
  53. }