System.Windows.Forms.MaskedTextBox: Property Members

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

Public Properties

AcceptsTabbool.

Gets or sets a value determining how TAB keys are handled for multiline configurations. This property is not supported by System.Windows.Forms.MaskedTextBox.

AllowPromptAsInputbool.

Gets or sets a value indicating whether MaskedTextBox.PromptChar can be entered as valid data by the user.

AsciiOnlybool.

Gets or sets a value indicating whether the System.Windows.Forms.MaskedTextBox control accepts characters outside of the ASCII character set.

BeepOnErrorbool.

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]
CanUndobool.

Gets a value indicating whether the user can undo the previous operation. This property is not supported by System.Windows.Forms.MaskedTextBox.

CultureSystem.Globalization.CultureInfo.

Gets or sets the culture information associated with the masked text box.

CutCopyMaskFormatMaskFormat.

Gets or sets a value that determines whether literals and prompt characters are copied to the clipboard.

FormatProviderIFormatProvider.

Gets or sets the IFormatProvider to use when performing type validation.

HidePromptOnLeavebool.

Gets or sets a value indicating whether the prompt characters in the input mask are hidden when the masked text box loses focus.

InsertKeyModeInsertKeyMode.

Gets or sets the text insertion mode of the masked text box control.

[read-only]
IsOverwriteModebool.

Gets a value that specifies whether new user input overwrites existing input.

Linesstring[].

Gets or sets the lines of text in multiline configurations. This property is not supported by System.Windows.Forms.MaskedTextBox.

Maskstring.

Gets or sets the input mask to use at run time.

[read-only]
MaskCompletedbool.

Gets a value indicating whether all required inputs have been entered into the input mask.

[read-only]
MaskedTextProviderSystem.ComponentModel.MaskedTextProvider.

Gets a clone of the mask provider associated with this instance of the masked text box control.

[read-only]
MaskFullbool.

Gets a value indicating whether all required and optional inputs have been entered into the input mask.

override
MaxLengthint.

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
Multilinebool.

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.

PasswordCharchar.

Gets or sets the character to be displayed in substitute for user input.

PromptCharchar.

Gets or sets the character used to represent the absence of user input in System.Windows.Forms.MaskedTextBox.

ReadOnlybool.

Gets or sets a value indicating whether text in the text box is read-only.

RejectInputOnFirstFailurebool.

Gets or sets a value indicating whether the parsing of user input should stop after the first invalid character is reached.

ResetOnPromptbool.

Gets or sets a value that determines how an input character that matches the prompt character should be handled.

ResetOnSpacebool.

Gets or sets a value that determines how a space input character should be handled.

override
SelectedTextstring.

Gets or sets the current selection in the System.Windows.Forms.MaskedTextBox control.

SkipLiteralsbool.

Gets or sets a value indicating whether the user is allowed to reenter literal values.

override
Textstring.

Gets or sets the text as it is currently displayed to the user.

TextAlignHorizontalAlignment.

Gets or sets how text is aligned in a masked text box control.

[read-only]
override
TextLengthint.

Gets the length of the displayed text.

TextMaskFormatMaskFormat.

Gets or sets a value that determines whether literals and prompt characters are included in the formatted string.

UseSystemPasswordCharbool.

Gets or sets a value indicating whether the operating system-supplied password character should be used.

ValidatingTypeType.

Gets or sets the data type used to verify the data input by the user.

WordWrapbool.

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.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.