TextBody.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace HTEXLib
  5. {
  6. public class TextBody
  7. {
  8. public List<Paragraph> paragraphs { get; set; }
  9. /// <summary>
  10. /// 垂直布局 Top 0,Center 1 , Bootom 2
  11. /// </summary>
  12. public string anchor { get; set; }
  13. /// <summary>
  14. /// 水平布局 水平居中anchorCt
  15. /// </summary>
  16. public bool anchorCtr { get; set; }
  17. // 书写方向 false 从左到右书写,true从右到左
  18. public bool rtlCol { get; set; }
  19. /// <summary>
  20. /// square 不溢出, none 溢出
  21. /// </summary>
  22. public string wrap { get; set; }
  23. /// <summary>
  24. /// "horz". 横向水平排版 默认
  25. /// "vert". 顺时针旋转90 ,多一行则向左前进
  26. /// "vert270". 顺时针旋转270,多一行则向右前进
  27. /// |------
  28. /// |---1
  29. /// |---2
  30. /// |---3
  31. /// 》》》》》
  32. /// |
  33. /// |123
  34. /// ||||
  35. /// ||||
  36. /// -------
  37. /// "wordArtVert". 堆积从左到右
  38. /// "wordArtVertRtl".堆积从右到左
  39. /// "eaVert". 垂直90度书写
  40. /// "mongolianVert". 垂直书写,从左到右
  41. /// </summary>
  42. public string vert { get; set; } = "horz";
  43. /// <summary>
  44. /// 旋转角度
  45. /// </summary>
  46. public double rot { get; set; } = 0;
  47. /// <summary>
  48. /// autoFit 大于 wrap设定
  49. /// true 每个形状的文本都停留在该形状的范围内
  50. /// flase 此元素指定文本主体内的文本不应自动适合于边框。
  51. /// </summary>
  52. public bool autoFit { get; set; } = true;
  53. public double top { get; set; }
  54. public double bottom { get; set; }
  55. public double left { get; set; }
  56. public double right { get; set; }
  57. public double lnSpRn { get; set; } = 0;
  58. }
  59. }