# MaskFormat

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Defines how to format the text inside of a [MaskedTextBox](https://docs.wisej.com/api/wisej.web/editors/maskedtextbox) control.

{% tabs %}
{% tab title="C#" %}

```csharp
public enum MaskFormat : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum MaskFormat As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name                         | Description                                                                                                                          |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **ExcludePromptAndLiterals** | Return only the text entered by the user.                                                                                            |
| **IncludeLiterals**          | Return the text entered by the user as well as any literal characters defined in the mask.                                           |
| **IncludePrompt**            | Return the text entered by the user as well as any instances of the prompt character.                                                |
| **IncludePromptAndLiterals** | Return 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

| Name                                                                                                                                                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DateTimePicker.TextMaskFormat](https://docs.wisej.com/api/editors/wisej.web.datetimepicker#textmaskformat)                                                        | <mark style="color:blue;background-color:green;">Since 3.2.8</mark> Returns or sets a value that determines whether literals and prompt characters are included in the [Text](https://docs.wisej.com/api/editors/wisej.web.datetimepicker#text) value when the [DateTimePicker](https://docs.wisej.com/api/wisej.web/editors/wisej.web.datetimepicker) also specifies a [Mask](https://docs.wisej.com/api/editors/wisej.web.datetimepicker#mask). |
| [MaskedTextBox.TextMaskFormat](https://docs.wisej.com/api/editors/maskedtextbox#textmaskformat)                                                                    | Returns or sets a value that determines whether literals and prompt characters are included in the formatted string.                                                                                                                                                                                                                                                                                                                              |
| [DataGridViewMaskedTextBoxCell.TextMaskFormat](https://docs.wisej.com/api/lists-and-grids/datagridview/wisej.web.datagridviewmaskedtextboxcell#textmaskformat)     | Returns or sets a value that determines whether literals and prompt characters are included in the formatted string.                                                                                                                                                                                                                                                                                                                              |
| [DataGridViewMaskedTextBoxColumn.TextMaskFormat](https://docs.wisej.com/api/lists-and-grids/datagridview/wisej.web.datagridviewmaskedtextboxcolumn#textmaskformat) | Returns or sets a value that determines whether literals and prompt characters are included in the formatted string.                                                                                                                                                                                                                                                                                                                              |
