Border.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace HTEXLib
  5. {
  6. public class Border
  7. {
  8. //public double width { get; set; }
  9. // public string color { get; set; }
  10. public string type { get; set; }
  11. /// <summary>
  12. /// 描边
  13. /// </summary>
  14. public string stroke{ get; set; }
  15. public string dir { get; set; }
  16. public HtexOutline outline { get; set; } = new HtexOutline();
  17. public Fill color { get; set; } = new Fill();
  18. /// <summary>
  19. /// 切角 bevel 棱台 round 圆角 斜角 miter
  20. /// </summary>
  21. public string corner { get; set; }
  22. public string headEnd { get; set; }
  23. public string tailEnd { get; set; }
  24. }
  25. public class HtexOutline
  26. {
  27. public double? Width { get; set; }
  28. /// <summary>
  29. /// Center = 0,
  30. ///Insert = 1
  31. ///20.1.10.39
  32. /// </summary>
  33. public string algn { get; set; }
  34. /// <summary>
  35. /// 20.1.10.15
  36. ///Single = 0,
  37. /// Double = 1,
  38. /// ThickThin = 2,
  39. /// ThinThick = 3,
  40. /// Triple = 4
  41. /// </summary>
  42. public string cmpd { get; set; }
  43. /// <summary>
  44. /// 20.1.10.31
  45. /// Round = 0,
  46. /// Square = 1,
  47. /// Flat = 2
  48. /// </summary>
  49. public string cap { get; set; }
  50. }
  51. }