| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
- using System.ComponentModel;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Dongke.WinForm.Controls
- {
- /// <summary>
- /// 文本框控件
- /// </summary>
- [ToolboxBitmap(typeof(TextBox))]
- public class TxtTextBox : TextBoxRejected, IDKControl
- {
- #region 构造函数
- /// <summary>
- /// 文本框控件
- /// </summary>
- public TxtTextBox()
- {
- }
- #endregion
- #region 属性
- /// <summary>
- /// 获取或设置限制输入的字符。
- /// </summary>
- [Description("获取或设置限制输入的字符。"), Category("CustomerEx")]
- [DefaultValue((string)null)]
- public virtual string RejectedChars
- {
- get
- {
- return this.Rejected;
- }
- set
- {
- this.Rejected = value;
- }
- }
- /// <summary>
- /// 获取或设置输入内容应该符合的正则表达式。
- /// </summary>
- [Description("获取或设置输入内容应该符合的正则表达式。"), Category("CustomerEx")]
- [DefaultValue((string)null)]
- public virtual string RegularExpression
- {
- get
- {
- return this.Regular;
- }
- set
- {
- this.Regular = value;
- }
- }
- #endregion
- }
- }
|