C_TextBox.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:C_TextBox.cs
  5. * 2.功能描述:扩展的文本框控件:便于修改背景颜色及字体、颜色
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 陈晓野 2014/08/13 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.ComponentModel;
  12. using System.Text.RegularExpressions;
  13. using System.Windows.Forms;
  14. namespace Dongke.IBOSS.PRD.Basics.BaseControls
  15. {
  16. /// <summary>
  17. /// 扩展的文本框控件
  18. /// </summary>
  19. public partial class C_TextBox : DKTextBoxBase
  20. {
  21. #region 成员变量
  22. #endregion
  23. #region 属性
  24. /// <summary>
  25. /// 获取或设置限制输入的字符
  26. /// </summary>
  27. [Description("获取或设置限制输入的字符"), Category("CustomerEx")]
  28. [DefaultValue((string)null)]
  29. public virtual string RejectCharsPattern
  30. {
  31. get
  32. {
  33. return this.RejectChars;
  34. }
  35. set
  36. {
  37. this.RejectChars = value;
  38. }
  39. }
  40. /// <summary>
  41. /// 获取或设置允许输入的字符
  42. /// </summary>
  43. [Description("获取或设置允许输入的字符"), Category("CustomerEx")]
  44. [DefaultValue((string)null)]
  45. public virtual string FixCharsPattern
  46. {
  47. get
  48. {
  49. return this.FixChars;
  50. }
  51. set
  52. {
  53. this.FixChars = value;
  54. }
  55. }
  56. #endregion
  57. #region 构造函数
  58. /// <summary>
  59. /// 构造函数
  60. /// </summary>
  61. public C_TextBox()
  62. {
  63. InitializeComponent();
  64. base.Text = string.Empty;
  65. this.ContinueWndProc = false;
  66. }
  67. #endregion
  68. #region 受保护的方法/函数
  69. #endregion
  70. #region 事件
  71. #endregion
  72. }
  73. }