namespace Yw.WinFrmUI
{
///
///
///
public static class TextEditExtensions
{
///
/// 只能输入数字
///
public static void SetNumeric(this TextEdit txt)
{
txt.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
// txt.Properties.Mask.UseMaskAsDisplayFormat = true;
txt.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True;
txt.Text = string.Empty;
}
}
}