TextInputType.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // ***********************************************************************
  2. // Assembly : HZH_Controls
  3. // Created : 08-08-2019
  4. //
  5. // ***********************************************************************
  6. // <copyright file="TextInputType.cs">
  7. // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
  8. // </copyright>
  9. //
  10. // Blog: https://www.cnblogs.com/bfyx
  11. // GitHub:https://github.com/kwwwvagaa/NetWinformControl
  12. // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
  13. //
  14. // If you use this code, please keep this note.
  15. // ***********************************************************************
  16. using System;
  17. using System.Collections.Generic;
  18. using System.ComponentModel;
  19. using System.Linq;
  20. using System.Text;
  21. namespace HZH_Controls
  22. {
  23. /// <summary>
  24. /// 功能描述:文本控件输入类型
  25. /// 作  者:HZH
  26. /// 创建日期:2019-02-28 10:09:00
  27. /// </summary>
  28. public enum TextInputType
  29. {
  30. /// <summary>
  31. /// 不控制输入
  32. /// </summary>
  33. [Description("不控制输入")]
  34. NotControl = 1,
  35. /// <summary>
  36. /// 任意数字
  37. /// </summary>
  38. [Description("任意数字")]
  39. Number = 2,
  40. /// <summary>
  41. /// 非负数
  42. /// </summary>
  43. [Description("非负数")]
  44. UnsignNumber = 4,
  45. /// <summary>
  46. /// 正数
  47. /// </summary>
  48. [Description("正数")]
  49. PositiveNumber = 8,
  50. /// <summary>
  51. /// 整数
  52. /// </summary>
  53. [Description("整数")]
  54. Integer = 16,
  55. /// <summary>
  56. /// 非负整数
  57. /// </summary>
  58. [Description("非负整数")]
  59. PositiveInteger = 32,
  60. /// <summary>
  61. /// 正则验证
  62. /// </summary>
  63. [Description("正则验证")]
  64. Regex = 64
  65. }
  66. }