[]
        
(Showing Draft Content)

C1.Blazor.Input.C1MaskedTextBox

C1MaskedTextBox Class

The C1MaskedTextEditor control allows you to validate and format user input as it is entered, preventing users from entering invalid data.

Inheritance
C1MaskedTextBox
Namespace: C1.Blazor.Input
Assembly: C1.Blazor.Input.dll
Syntax
public class C1MaskedTextBox : C1TextBox, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1MaskedTextBox()

Initializes a new instance of the C1MaskedTextBox class.

Properties

Name Description
DisplayMode

Gets or set the DisplayMode value.

IsValid

Gets a value that determines whether the control contains a valid entry.

Mask

Gets or sets the input mask.

MaskFormat

Gets or set the MaskFormat value.

MaskedTextChanged

Occurs when consistent content that conforms to the Mask changes in the text box.

OnMaskFormatChanged

/// Occurs when consistent content that conforms to the MaskFormat changes. Gets or sets the callback called when the MaskFormat is changed.

OnMaskInputRejected

Gets or sets the callback called when the text changing is finished.

PromptChar

Gets or set the PromptChar value.

TabBehavior

Define the tab behavior if set.

Text

Gets or sets the text displayed.

Value

Gets text value.

Methods

Name Description
ApplyMaskSettings()

Update client mask settings

Dispose(bool)
FocusAsync()

handle focus behavior.

FocusOutAsync()

handle lost-focus behavior.

GetActualType()

define the actual type of box DOM.

InitializeAsync()
OnAfterRender(bool)
OnTextChangedAsync(string)
OnTextPropertyChanged(string, string)

custom handling the text changed.