DevExpress杂项

this.textEdit1.Properties.EditFormat.FormatString = "yyyy-MM-dd";
this.textEdit1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.textEdit1.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.RegEx;
this.textEdit1.Properties.Mask.EditMask = "\\d{2}\\d{2}?-([0]?[1-9]|10|11|12)-(0?[1-9]|[12]\\d|30|31) (([01]?[0-9]|2[0-3])(:[0-" +"5]\\d)?)?";
//"\\d{2}\\d{2}?-([0]?[1-9]|10|11|12)-(0?[1-9]|[12]\\d|30|31)";
this.textEdit1.Properties.Mask.ShowPlaceHolders = false;
原文地址:https://www.cnblogs.com/perfect/p/1574026.html