# IMaskedTextProvider interface

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public interface IMaskedTextProvider
```

Interface for a masked text provider that can be used with [MaskedTextBox](https://eto.picoe.ca/api/type/eto.forms.maskedtextbox.md).

**Remarks:** This defines the interface that the [MaskedTextBox](https://eto.picoe.ca/api/type/eto.forms.maskedtextbox.md) uses when inserting, deleting, and clearing characters from a masked string. This can be implemented by both variable and fixed masks (unlike the standard System.ComponentModel.MaskedTextProvider), and provides a way to create your own completely custom masks. You can also use the [VariableMaskedTextProvider](https://eto.picoe.ca/api/type/eto.forms.variablemaskedtextprovider.md) as a base for custom masks to implement the default functionality.

**Derived types:** [FixedMaskedTextProvider](https://eto.picoe.ca/api/type/eto.forms.fixedmaskedtextprovider.md), [FixedMaskedTextProvider.IHandler](https://eto.picoe.ca/api/type/eto.forms.fixedmaskedtextprovider.ihandler.md), [IMaskedTextProvider<T>](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider-1.md), [VariableMaskedTextProvider](https://eto.picoe.ca/api/type/eto.forms.variablemaskedtextprovider.md)

## Properties

- [DisplayText](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/displaytext.md): Gets the display text, including prompt characters.
- [EditPositions](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/editpositions.md): Gets an enumeration of all valid edit positions in the mask.
- [IsEmpty](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/isempty.md): Gets a value indicating the mask is empty with no characters filled out.
- [MaskCompleted](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/maskcompleted.md): Gets a value indicating whether the mask has all required text to pass its validation.
- [Text](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/text.md): Gets or sets the text, usually excluding prompt or literal characters depending on the mask provider.

## Methods

- [Clear](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/clear.md): Called to clear a range of characters at the specified position in the masked text.
- [CommitText](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/committext.md): Called to update the display text after changes to the mask value.
- [Delete](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/delete.md): Called to delete a range of characters at the specified position in the masked text.
- [Insert](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/insert.md): Called to insert a character at the specified position in the masked text.
- [Replace](https://eto.picoe.ca/api/type/eto.forms.imaskedtextprovider/replace.md): Called to replace a character at the specified position in the masked text.
