System.Windows.Forms.MaskFormat Enumeration

Defines how to format the text inside of a System.Windows.Forms.MaskedTextBox.

Syntax

public enum MaskFormat

Remarks

This enumeration is used by MaskedTextBox.CutCopyMaskFormat and MaskedTextBox.TextMaskFormat to control how text is returned—in the first case, by performing a cut and copy operation, and in the second place, by using the MaskedTextBox.Text property.

Members

Member NameDescription
ExcludePromptAndLiterals

Return only text input by the user.

IncludeLiterals

Return text input by the user as well as any literal characters defined in the mask.

IncludePrompt

Return text input by the user as well as any instances of the prompt character.

IncludePromptAndLiterals

Return text input by the user as well as any literal characters defined in the mask and any instances of the prompt character.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0