CellRectangle.cs
上传用户:jx_fiona
上传日期:2014-03-08
资源大小:1387k
文件大小:1k
源码类别:

打印编程

开发平台:

Others

  1. using System;
  2. namespace GoldPrinter
  3. {
  4. /// <summary>
  5. /// 网格单元格矩阵,描述左顶宽高
  6. /// 
  7. /// 作 者:长江支流(周方勇)
  8. /// Email:flygoldfish@163.com  QQ:150439795
  9. /// 网 址:www.webmis.com.cn
  10. /// ★★★★★您可以免费使用此程序,但是请您完整保留此说明,以维护知识产权★★★★★
  11. /// 
  12. /// </summary>
  13. public struct CellRectangle
  14. {
  15. private int _cellLeft,_cellTop,_cellWidth,_cellHeight;
  16. public CellRectangle(int cellLeft,int cellTop,int cellWidth,int cellHeight)
  17. {
  18. _cellLeft = cellLeft;
  19. _cellTop = cellTop;
  20. _cellWidth = cellWidth;
  21. _cellHeight = cellHeight;
  22. }
  23. /// <summary>
  24. /// 单元格起点X坐标
  25. /// </summary>
  26. public int Left
  27. {
  28. get
  29. {
  30. return _cellLeft;
  31. }
  32. set
  33. {
  34. this._cellLeft = value;
  35. }
  36. }
  37. /// <summary>
  38. /// 单元格起点Y坐标
  39. /// </summary>
  40. public int Top
  41. {
  42. get
  43. {
  44. return _cellTop;
  45. }
  46. set
  47. {
  48. this._cellTop = value;
  49. }
  50. }
  51. /// <summary>
  52. /// 单元格宽
  53. /// </summary>
  54. public int Width
  55. {
  56. get
  57. {
  58. return _cellWidth;
  59. }
  60. set
  61. {
  62. this._cellWidth = value;
  63. }
  64. }
  65. /// <summary>
  66. /// 单元格高
  67. /// </summary>
  68. public int Height
  69. {
  70. get
  71. {
  72. return _cellHeight;
  73. }
  74. set
  75. {
  76. this._cellHeight = value;
  77. }
  78. }
  79. }//End Class
  80. }//End NameSpace