
Colors left empty follow the system colors, translated for dark mode and high contrast (see Dark Mode and High Contrast).
| Property | Description |
|---|---|
| SftMask.BackColor, SftMask.ForeColor | The background and the input. A disabled control, and a read-only control without a background color of its own, show the background in SystemColors.Control. |
| SftMask.FocusBackColor, SftMask.FocusForeColor | The background and the input while the control has the input focus. |
| SftMask.LiteralForeColor | The literals of the mask. When it is empty, literals are shown in the color of the input. |
| SftMask.DisabledForeColor, SftMask.DisabledLiteralForeColor | The input and the literals while the control is disabled. An empty DisabledForeColor uses SystemColors.GrayText, an empty DisabledLiteralForeColor the DisabledForeColor property. |
| SftMask.SelectionBackColor, SftMask.SelectionForeColor | The selection. While the control does not have the input focus, the selection is shown only when the SftMask.HideSelection property is false. |
| SftMask.FocusSelectionBackColor, SftMask.FocusSelectionForeColor | The selection while the control has the input focus. |
| SftMask.InvalidBackColor, SftMask.InvalidForeColor | The background and the input while the contents are not valid (see Validation). They take precedence over the focus colors, and the invalid text color is also used for the literals and the label. |
| Property | Description |
|---|---|
| SftMask.BorderStyle | Fixed3D (the default) draws the border of a Windows edit control, FixedSingle a single line in the color defined by the SftMask.BorderColor property, and None no border. |
| SftMask.BorderColor | The color of a FixedSingle border. When it is empty, SystemColors.ControlDark is used. |
| SftMask.AutoSize | The control's height fits its font. This is the default; SftMask.PreferredHeight returns that height. |
| SftMask.UseThemes | The border and the buttons are drawn with the Windows visual styles (the default). |
| SftMask.HotTrack | The buttons are highlighted while the mouse is over them (the default). |
| Property | Description |
|---|---|
| SftMask.TextAlign | The alignment of the contents and of the formatted text: left (the default), right or centered. Amounts are usually right aligned. In a right-to-left layout (RightToLeft property), left and right are swapped. |
| SftMask.FormattedText | A text shown instead of the contents while the control does not have the input focus, such as an amount written out in words. The contents are shown while the control has the input focus and while the mouse is over the field. |
| Font | The font of the contents, the label and the popups. |
Prompt characters and underlines are described in Prompt Characters and Underlines, the label in Label.