You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Border.cs 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Drawing;
  6. namespace Novacode
  7. {
  8. /// <summary>
  9. /// Represents a border of a table or table cell
  10. /// Added by lckuiper @ 20101117
  11. /// </summary>
  12. public class Border
  13. {
  14. BorderStyle tcbs;
  15. Color color;
  16. BorderSize size;
  17. int space;
  18. public BorderStyle Tcbs
  19. {
  20. get { return tcbs; }
  21. set { tcbs = value; }
  22. }
  23. public BorderSize Size
  24. {
  25. get { return size; }
  26. set { size = value; }
  27. }
  28. public int Space
  29. {
  30. get { return space; }
  31. set { space = value; }
  32. }
  33. public Color Color
  34. {
  35. get { return color; }
  36. set { color = value; }
  37. }
  38. public Border()
  39. {
  40. this.tcbs = BorderStyle.Tcbs_single;
  41. this.size = BorderSize.one;
  42. this.space = 0;
  43. this.color = Color.Black;
  44. }
  45. public Border(BorderStyle tcbs, BorderSize size, int space, Color color)
  46. {
  47. this.Tcbs = tcbs;
  48. this.size = size;
  49. this.space = space;
  50. this.Color = color;
  51. }
  52. }
  53. }