The MaskedTextBox type exposes the following members.

Constructors

  NameDescription
MaskedTextBox
Initializes a new instance of the MaskedTextBox class.

Methods

  NameDescription
EndInit
Indicates that the initialization process for the element is complete.
(Inherited from FilteringTextBoxBase.)
OnApplyTemplate
Called by the framework when a template is applied to the control.
(Inherited from FilteringTextBoxBase.)
OnPreviewKeyDown
Overrides default handling for the PreviewKeyDown event.
(Overrides UIElement..::.OnPreviewKeyDown(KeyEventArgs).)
OnPreviewTextInput
Overrides default handling for the PreviewTextInput event.
(Overrides UIElement..::.OnPreviewTextInput(TextCompositionEventArgs).)

Fields

  NameDescription
AutoSkipLiteralsProperty
Identifies the AutoSkipLiterals property.
InputStyleProperty
Identifies the InputStyle property.
IsMaskCompletedProperty
Identifies the IsMaskCompleted property.
IsMaskFullProperty
Identifies the IsMaskFull property.
LastOperationResultProperty
Identifies the LastOperationResult property.
LastOperationSucceededProperty
Identifies the LastOperationSucceeded property.
LiteralStyleProperty
Identifies the LiteralStyle property.
MaskProperty
Identifies the Mask property.
PromptCharDisplaySelectorProperty
Identifies the PromptCharDisplaySelector property.
PromptStyleProperty
Identifies the PromptStyle property.

Properties

  NameDescription
AutoSkipLiterals
Gets or sets whether literals are automatically skipped during text entry. If true, user input (and deletion) is automatically sent to the next edit position, so the user can type past literals; if false, the user must type or cursor over literals. The default is true. This is a dependency property.
Culture
Gets or sets the culture used for parsing and formatting of user input. This is a dependency property.
(Inherited from FilteringTextBoxBase.)
InputStyle
Gets or sets the style used to display characters entered by the user. This is a dependency property.
IsMaskCompleted
Gets whether the mask has been completed, i.e. all mandatory positions have been filled. Input into a completed mask may still be possible if optional positions are unfilled. This is a dependency property.
IsMaskFull
Gets whether the mask is full, i.e. all available positions have been filled and no further input is possible. This is a dependency property.
LastOperationResult
Gets the result of the last operation (user text entry) into the MaskedTextBox. This can be used to control the content of user assistance or error indicators. This is a dependency property.
LastOperationSucceeded
Gets the result of the last operation (user text entry) into the MaskedTextBox. This can be used to control the visibility of user assistance or error indicators. This is a dependency property.
LiteralStyle
Gets or sets the style used to display literal characters from the mask. This is a dependency property.
Mask
Gets or sets the mask. This is a dependency property.
PromptCharDisplaySelector
Gets or sets the object used to customize the appearance of prompt elements. This is a dependency property.
PromptStyle
Gets or sets the style used to display prompts (mask positions where input is permitted but the user has not yet entered a character). This is a dependency property.
Text
Gets or sets the text displayed to represent the value. This is a dependency property.
(Inherited from FilteringTextBoxBase.)
TextAlignment
Gets or sets the text alignment. This is a dependency property.
(Inherited from FilteringTextBoxBase.)

See Also