menu

Blazor

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

    Show / Hide Table of Contents

    Class MaskFocusEventArgs

    Provides information about an Focus event being raised.

    Inheritance
    System.Object
    MaskBlurEventArgs
    MaskFocusEventArgs
    Inherited Members
    MaskBlurEventArgs.Container
    MaskBlurEventArgs.MaskedValue
    MaskBlurEventArgs.Value
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MaskFocusEventArgs : MaskBlurEventArgs
    Remarks

    This event argument class extends MaskBlurEventArgs and is specifically used for focus events in the MaskedTextBox component. It includes all properties from the base class plus additional text selection information that is available when the component receives focus.

    Constructors

    MaskFocusEventArgs()

    Declaration
    public MaskFocusEventArgs()

    Properties

    SelectionEnd

    Gets the ending position of the text selection range within the MaskedTextBox.

    Declaration
    public int SelectionEnd { get; set; }
    Property Value
    Type Description
    System.Int32

    An integer representing the character position where the text selection ends. The value depends on the mask length and current cursor position.

    Remarks

    The SelectionEnd property indicates the ending boundary of any selected text within the MaskedTextBox when it receives focus. This value is particularly useful for implementing custom selection behaviors, text manipulation operations, or maintaining cursor position during focus events.

    SelectionStart

    Gets the starting position of the text selection range within the MaskedTextBox.

    Declaration
    public int SelectionStart { get; set; }
    Property Value
    Type Description
    System.Int32

    An integer representing the character position where the text selection starts. This value is typically zero by default when no specific selection is made.

    Remarks

    The SelectionStart property indicates the starting boundary of any selected text within the MaskedTextBox when it receives focus. Combined with SelectionEnd, this provides complete information about the current text selection state, enabling precise cursor positioning and text selection management.

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