menu

Blazor

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

    Show / Hide Table of Contents

    Class TabSelectingEventArgs

    Provides information about the TabSelecting event callback.

    Inheritance
    System.Object
    TabSelectingEventArgs
    Namespace: Syncfusion.Blazor.Ribbon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TabSelectingEventArgs : Object
    Remarks

    Use this event to handle logic before a tab is selected in the ribbon. You can cancel the tab selection by setting Cancel to true.

    Constructors

    TabSelectingEventArgs()

    Declaration
    public TabSelectingEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the tab selection should be canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the tab selection should be canceled; otherwise, false. The default value is false.

    Remarks

    Use this property to cancel the tab selection process, based on custom conditions.

    IsContextual

    Gets or sets whether the tab is a contextual tab.

    Declaration
    public bool IsContextual { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the tab is contextual; otherwise, false. The default value is false.

    Remarks

    Use this property to determine the type of the selecting tab.

    IsInteracted

    Gets or sets a value indicating whether the event is triggered via user interaction or programmatically.

    Declaration
    public bool IsInteracted { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if triggered by user interaction; otherwise, false. The default value is false.

    Remarks

    Helps to determine the origin of the tab selection, useful for distinguishing between user interaction and code-driven selection.

    PreviousIndex

    Gets or sets the index of the previously selected tab.

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

    An integer representing the index of the previously selected tab.

    Remarks

    This property allows tracking of tab transitions within the ribbon.

    SelectedIndex

    Gets or sets the index of the currently selected tab.

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

    An integer representing the index of the currently selected tab.

    Remarks

    Use this property to obtain the new position of the tab selection.

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