Beispiel #1
0
        public void InitBothMode( )
        {
            this.Properties.NullValuePrompt = DummyText;
            this.Properties.AllowNullInput  = DevExpress.Utils.DefaultBoolean.True;

            if (this.Anchor == AnchorStyles.None)
            {
                this.Anchor = AnchorStyles.Left | AnchorStyles.Top;
            }



            if (!String.IsNullOrWhiteSpace(EditMask.ToString()) && !String.IsNullOrWhiteSpace(MaskType.ToString()))
            {
                this.Properties.Mask.UseMaskAsDisplayFormat = true;
            }

            this.Properties.NullValuePromptShowForEmptyValue = true;

            if (this.RightToLeft == System.Windows.Forms.RightToLeft.Yes)
            {
                this.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            }

            this.Properties.Buttons[1].Visible = false;
        }
 protected virtual void SetControlMaskSettings(PropertyEditor propertyEditor, EditMask mask)
 {
 }