menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MaskBlurEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MaskBlurEventArgs

    Provides information about an Blur event being raised.

    Inheritance
    System.Object
    MaskBlurEventArgs
    MaskChangeEventArgs
    MaskFocusEventArgs
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MaskBlurEventArgs : Object
    Remarks

    This event argument class is used when the MaskedTextBox control loses focus. It contains essential information about the component state at the time of the blur event, including the container element reference and both the masked and unmasked values.

    Constructors

    MaskBlurEventArgs()

    Declaration
    public MaskBlurEventArgs()

    Properties

    Container

    Gets the MaskedTextBox container element.

    Declaration
    public ElementReference Container { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.ElementReference

    An Microsoft.AspNetCore.Components.ElementReference object that provides a reference to the DOM element containing the MaskedTextBox component. This reference can be used for direct DOM manipulation or accessing element properties.

    Remarks

    The Container property provides access to the root DOM element of the MaskedTextBox component. This is particularly useful for scenarios where you need to perform custom styling, focus management, or interact with the element using JavaScript interop.

    MaskedValue

    Gets the value of the SfMaskedTextBox with the masked format.

    Declaration
    public string MaskedValue { get; set; }
    Property Value
    Type Description
    System.String

    A string containing the formatted value including mask literals and prompt characters. Returns null if no value is present.

    Remarks

    The MaskedValue represents the complete formatted display value as it appears in the input field, including all mask literals, separators, and formatting characters. This is different from the raw Value property which contains only the user-entered data without formatting.

    Value

    Gets the value of SfMaskedTextBox.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    A string containing the raw, unformatted user input value without mask literals or formatting characters. Returns null if no value is present.

    Remarks

    The Value property contains only the actual user-entered data, stripped of all mask formatting, literals, and prompt characters. This raw value is typically what you would use for data binding, validation, and business logic operations.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved