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