Skip to main content
Version: 4.2

MaskFormat

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Defines how to format the text inside of a MaskedTextBox control.

public enum MaskFormat

Select one of the named values, such as ExcludePromptAndLiterals, IncludePrompt, IncludeLiterals. The member descriptions define the behavior of each value.

Fields​

NameDescriptionValue
ExcludePromptAndLiteralsReturn only the text entered by the user.
IncludeLiteralsReturn the text entered by the user as well as any literal characters defined in the mask.
IncludePromptReturn the text entered by the user as well as any instances of the prompt character.
IncludePromptAndLiteralsReturn the text entered by the user as well as any literal characters defined in the mask and any instances of the prompt character.

Used By​

NameDescription
DateTimePicker.TextMaskFormatGets or sets a value that determines whether literals and prompt characters are included in the Text value when the DateTimePicker also specifies a Mask.
3.2.8+
MaskedTextBox.TextMaskFormatGets or sets a value that determines whether literals and prompt characters are included in the formatted string.
DataGridViewMaskedTextBoxCell.TextMaskFormatGets or sets a value that determines whether literals and prompt characters are included in the formatted string.
DataGridViewMaskedTextBoxColumn.TextMaskFormatGets or sets a value that determines whether literals and prompt characters are included in the formatted string.