PaperArea.cs 940 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. 
  2. using System.ComponentModel;
  3. using System.Windows.Forms;
  4. using Microsoft.VisualBasic.PowerPacks;
  5. namespace Dongke.WinForm.Controls.InvoiceLayout
  6. {
  7. [ToolboxItem(false)]
  8. internal partial class PaperArea : UserControl
  9. {
  10. #region 构造函数
  11. /// <summary>
  12. /// 构造函数
  13. /// </summary>
  14. public PaperArea()
  15. {
  16. InitializeComponent();
  17. SetStyle(ControlStyles.OptimizedDoubleBuffer
  18. | ControlStyles.ResizeRedraw
  19. | ControlStyles.AllPaintingInWmPaint
  20. , true);
  21. }
  22. #endregion 构造函数
  23. #region 属性
  24. /// <summary>
  25. /// Item设置,打印的范围。
  26. /// </summary>
  27. public ShapeContainer ShapeContainer
  28. {
  29. get
  30. {
  31. return this.shapeContainer1;
  32. }
  33. }
  34. #endregion 属性
  35. }
  36. }