Click or drag to resize

IMaskedTextProvider Interface

Interface for a masked text provider that can be used with MaskedTextBox.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public interface IMaskedTextProvider

The IMaskedTextProvider type exposes the following members.

Properties
  NameDescription
Public propertyDisplayText
Gets the display text, including prompt characters.
Public propertyEditPositions
Gets an enumeration of all valid edit positions in the mask.
Public propertyIsEmpty
Gets a value indicating the mask is empty with no characters filled out.
Public propertyMaskCompleted
Gets a value indicating whether the mask has all required text to pass its validation.
Public propertyText
Gets or sets the text, usually excluding prompt or literal characters depending on the mask provider.
Top
Methods
  NameDescription
Public methodClear
Called to clear a range of characters at the specified position in the masked text.
Public methodDelete
Called to delete a range of characters at the specified position in the masked text.
Public methodInsert
Called to insert a character at the specified position in the masked text.
Public methodReplace
Called to replace a character at the specified position in the masked text.
Top
Remarks
This defines the interface that the MaskedTextBox 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 as a base for custom masks to implement the default functionality.
See Also