主题:求助关于DevExpress.XtraEditors.TextEdit的displayformat
我希望textedit中输入55555显示 (钱的符号)555,55
参考别的代码和帮助,我做了如下设置:(txtJiCoKin位TextEdit控件)
//
// txtJiCoKin
//
this.txtJiCoKin.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.txtJiCoKin.Name = "txtJiCoKin";
//
// txtJiCoKin.Properties
//
this.txtJiCoKin.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True;
this.txtJiCoKin.Properties.Appearance.Font = new System.Drawing.Font("MS UI Gothic", 9F);
this.txtJiCoKin.Properties.Appearance.Options.UseFont = true;
this.txtJiCoKin.Properties.DisplayFormat.FormatString = "c0";
this.txtJiCoKin.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.txtJiCoKin.Properties.Mask.EditMask = "d";
this.txtJiCoKin.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
this.txtJiCoKin.Properties.Mask.PlaceHolder = '\0';
this.txtJiCoKin.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.txtJiCoKin.Size = new System.Drawing.Size(112, 20);
我参考的程序也是这么设的,就成功了,但我的程序却不成功,输入55555结果仍然是55555
希望高手能指点迷津或指出方向。
先多谢热心人帮忙。
参考别的代码和帮助,我做了如下设置:(txtJiCoKin位TextEdit控件)
//
// txtJiCoKin
//
this.txtJiCoKin.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.txtJiCoKin.Name = "txtJiCoKin";
//
// txtJiCoKin.Properties
//
this.txtJiCoKin.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True;
this.txtJiCoKin.Properties.Appearance.Font = new System.Drawing.Font("MS UI Gothic", 9F);
this.txtJiCoKin.Properties.Appearance.Options.UseFont = true;
this.txtJiCoKin.Properties.DisplayFormat.FormatString = "c0";
this.txtJiCoKin.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.txtJiCoKin.Properties.Mask.EditMask = "d";
this.txtJiCoKin.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
this.txtJiCoKin.Properties.Mask.PlaceHolder = '\0';
this.txtJiCoKin.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.txtJiCoKin.Size = new System.Drawing.Size(112, 20);
我参考的程序也是这么设的,就成功了,但我的程序却不成功,输入55555结果仍然是55555
希望高手能指点迷津或指出方向。
先多谢热心人帮忙。