Paragraph.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TEAMModelOS.Service.Model.PowerPoint
  5. {
  6. public class Paragraph
  7. {
  8. public ParagraphStyle style { get; set; }
  9. public Paragraph() {
  10. texts = new List<Text>();
  11. }
  12. public BuChar buChar { get; set; }
  13. public List<Text> texts { get; set; }
  14. }
  15. public class Text
  16. {
  17. // public string StyleSha { get; set; }
  18. public string content { get; set; }
  19. public string href { get; set; }
  20. public bool isbr { get; set; } = false;
  21. public FontStyle style { get; set; }
  22. }
  23. public class BuChar {
  24. //TYPE_BULPIC TYPE_NUMERIC TYPE_BULLET TYPE_NONE 没有图标的 只有缩进
  25. public string type{ get; set; }
  26. public double left { get; set; }
  27. public double riht { get; set; }
  28. public string buchar { get; set; }
  29. public string typeface { get; set; }
  30. public double size { get; set; }
  31. public string @float { get; set; }
  32. /// <summary>
  33. /// ltr 默认。文本方向从左到右
  34. /// rtl 文本方向从右到左。
  35. /// inherit 规定应该从父元素继承 direction 属性的值。
  36. /// </summary>
  37. public string direction { get; set; } = "inherit";
  38. }
  39. public class ParagraphStyle
  40. {
  41. public string vert { get; set; }
  42. // public string LeftMargin { get; set; }
  43. public string hori { get; set; }
  44. public string writing { get; set; }
  45. }
  46. }