namespace SFCsharpTest{
public class dxTextEditC : MicroFour.StrataFrame.UI.Windows.Forms.DevEx.TextEdit {
public dxTextEditC() {
this.initializecomponent();
}
private void initializecomponent() {
this.BindingFormat = "c"; this.Properties.Appearance.Options.UseTextOptions = true; this.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.Properties.AppearanceDisabled.BackColor = System.Drawing.Color.White; this.Properties.AppearanceDisabled.ForeColor = System.Drawing.Color.Black; this.Properties.AppearanceDisabled.Options.UseBackColor = true; this.Properties.AppearanceDisabled.Options.UseForeColor = true; this.Properties.AppearanceDisabled.Options.UseTextOptions = true; this.Properties.AppearanceDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
}}
I'm attaching a C# project that demonstrates it.