OneDDrawingOptions.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. 
  2. using System;
  3. using System.Drawing;
  4. namespace Dongke.WinForm.Controls.InvoiceLayout.DrawBarcode.OneD
  5. {
  6. /// <summary>
  7. /// 一维码绘制参数
  8. /// </summary>
  9. [Serializable]
  10. public class OneDDrawingOptions : DrawingOptions
  11. {
  12. private bool _showText = false;
  13. private int? _textMargin = null;
  14. private Font _textFont = null;
  15. /// <summary>
  16. /// 一维码绘制参数
  17. /// </summary>
  18. public OneDDrawingOptions()
  19. {
  20. }
  21. /// <summary>
  22. /// 显示条码
  23. /// </summary>
  24. public bool ShowText
  25. {
  26. get
  27. {
  28. return _showText;
  29. }
  30. set
  31. {
  32. _showText = value;
  33. }
  34. }
  35. /// <summary>
  36. /// 条码与文字间余白
  37. /// </summary>
  38. public int? TextMargin
  39. {
  40. get
  41. {
  42. return _textMargin;
  43. }
  44. set
  45. {
  46. _textMargin = value;
  47. }
  48. }
  49. /// <summary>
  50. /// 字体
  51. /// </summary>
  52. public Font TextFont
  53. {
  54. get
  55. {
  56. return _textFont;
  57. }
  58. set
  59. {
  60. _textFont = value;
  61. }
  62. }
  63. }
  64. }