Click or drag to resize

MaskedTextStepper Class

Text box with masking capabilities.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
[ContentPropertyAttribute("Provider")]
public class MaskedTextStepper : TextStepper

The MaskedTextStepper type exposes the following members.

Constructors
  NameDescription
Public methodMaskedTextStepper
Initializes a new instance of the MaskedTextStepper class.
Public methodMaskedTextStepper(IMaskedTextProvider)
Initializes a new instance of the MaskedTextStepper class with the specified masked text provider.
Top
Properties
  NameDescription
Public propertyInsertMode
Gets or sets the mode for insertion. Use IsOverwrite to determine the current mode.
Public propertyIsOverwrite
Gets a value indicating whether typing will overwrite text.
Public propertyMaskCompleted
Gets a value indicating whether the mask is completed.
Public propertyProvider
Gets or sets the masked text provider to specify the mask format.
Public propertyShowPlaceholderWhenEmpty
Gets or sets a value indicating that the placeholder should be shown when the mask is empty and the control does not have focus.
Public propertyShowPromptMode
Gets or sets the mode for when the input prompts should be shown
Public propertyShowPromptOnFocus Obsolete.
Gets or sets a value indicating that the prompt characters should only be shown when the control has focus.
Public propertyText
Gets or sets the text of the control including any mask characters.
(Overrides TextControlText.)
Top
Methods
Remarks
This uses the IMaskedTextProvider as its interface to the mask. The mask can implement any format it wishes, including both fixed or variable length masks. The MaskedTextStepper allows you to mask, or limit which characters can be entered in the text box with either a fixed, variable, or custom mask. A fixed mask can be a phone number, postal code, or something that requires a specific format and can be created using the FixedMaskedTextProvider. A variable mask limits which characters can be entered but is not limited to a fixed number of characters. An implementation of a variable mask is the NumericMaskedTextBoxT which allows you to enter only numeric values in a text box, and places the positive / negative symbol at the beginning regardless of where you type it.
See Also