The properties of System.Windows.Forms.MaskedTextBox are listed below. For a list of all members, see the MaskedTextBox Members list.
See Also: Inherited members from System.Windows.Forms.TextBoxBase
AcceptsTab | bool.
Gets or sets a value determining how TAB keys are handled for multiline configurations. This property is not supported by System.Windows.Forms.MaskedTextBox. | |
AllowPromptAsInput | bool.
Gets or sets a value indicating whether MaskedTextBox.PromptChar can be entered as valid data by the user. | |
AsciiOnly | bool.
Gets or sets a value indicating whether the System.Windows.Forms.MaskedTextBox control accepts characters outside of the ASCII character set. | |
BeepOnError | bool.
Gets or sets a value indicating whether the masked text box control raises the system beep for each user key stroke that it rejects. | |
[read-only] | CanUndo | bool.
Gets a value indicating whether the user can undo the previous operation. This property is not supported by System.Windows.Forms.MaskedTextBox. |
Culture | System.Globalization.CultureInfo.
Gets or sets the culture information associated with the masked text box. | |
CutCopyMaskFormat | MaskFormat.
Gets or sets a value that determines whether literals and prompt characters are copied to the clipboard. | |
FormatProvider | IFormatProvider.
Gets or sets the IFormatProvider to use when performing type validation. | |
HidePromptOnLeave | bool.
Gets or sets a value indicating whether the prompt characters in the input mask are hidden when the masked text box loses focus. | |
InsertKeyMode | InsertKeyMode.
Gets or sets the text insertion mode of the masked text box control. | |
[read-only] | IsOverwriteMode | bool.
Gets a value that specifies whether new user input overwrites existing input. |
Lines | string[].
Gets or sets the lines of text in multiline configurations. This property is not supported by System.Windows.Forms.MaskedTextBox. | |
Mask | string.
Gets or sets the input mask to use at run time. | |
[read-only] | MaskCompleted | bool.
Gets a value indicating whether all required inputs have been entered into the input mask. |
[read-only] | MaskedTextProvider | System.ComponentModel.MaskedTextProvider.
Gets a clone of the mask provider associated with this instance of the masked text box control. |
[read-only] | MaskFull | bool.
Gets a value indicating whether all required and optional inputs have been entered into the input mask. |
override | MaxLength | int.
Gets or sets the maximum number of characters the user can type or paste into the text box control. This property is not supported by System.Windows.Forms.MaskedTextBox. |
override | Multiline | bool.
Gets or sets a value indicating whether this is a multiline text box control. This property is not fully supported by System.Windows.Forms.MaskedTextBox. |
PasswordChar | char.
Gets or sets the character to be displayed in substitute for user input. | |
PromptChar | char.
Gets or sets the character used to represent the absence of user input in System.Windows.Forms.MaskedTextBox. | |
ReadOnly | bool.
Gets or sets a value indicating whether text in the text box is read-only. | |
RejectInputOnFirstFailure | bool.
Gets or sets a value indicating whether the parsing of user input should stop after the first invalid character is reached. | |
ResetOnPrompt | bool.
Gets or sets a value that determines how an input character that matches the prompt character should be handled. | |
ResetOnSpace | bool.
Gets or sets a value that determines how a space input character should be handled. | |
override | SelectedText | string.
Gets or sets the current selection in the System.Windows.Forms.MaskedTextBox control. |
SkipLiterals | bool.
Gets or sets a value indicating whether the user is allowed to reenter literal values. | |
override | Text | string.
Gets or sets the text as it is currently displayed to the user. |
TextAlign | HorizontalAlignment.
Gets or sets how text is aligned in a masked text box control. | |
[read-only] override | TextLength | int.
Gets the length of the displayed text. |
TextMaskFormat | MaskFormat.
Gets or sets a value that determines whether literals and prompt characters are included in the formatted string. | |
UseSystemPasswordChar | bool.
Gets or sets a value indicating whether the operating system-supplied password character should be used. | |
ValidatingType | Type.
Gets or sets the data type used to verify the data input by the user. | |
WordWrap | bool.
Gets or sets a value indicating whether a multiline text box control automatically wraps words to the beginning of the next line when necessary. This property is not supported by System.Windows.Forms.MaskedTextBox. |
[read-only] override | CreateParams | CreateParams.
Gets the required creation parameters when the control handle is created. |