ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / TabPanel Class / AutoSwitch Property






In This Topic
    AutoSwitch Property (TabPanel)
    In This Topic
    Gets or sets a value that determines whether the control should switch tabs automatically when the user selects a tab using the arrow keys.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(True)>
    Public Property AutoSwitch As System.Boolean
    'Usage
     
    
    Dim instance As TabPanel
    Dim value As System.Boolean
     
    instance.AutoSwitch = value
     
    value = instance.AutoSwitch
    [System.ComponentModel.DefaultValue(true)]
    public System.bool AutoSwitch {get; set;}
    public read-write property AutoSwitch: System.Boolean; 
    System.ComponentModel.DefaultValueAttribute()
    public function get,set AutoSwitch : System.boolean
    [System.ComponentModel.DefaultValue(true)]
    public: __property System.bool get_AutoSwitch();
    public: __property void set_AutoSwitch( 
       System.bool value
    );
    [System.ComponentModel.DefaultValue(true)]
    public:
    property System.bool AutoSwitch {
       System.bool get();
       void set (    System.bool value);
    }
    Remarks
    When AutoSwitch is set to true (the default value), pressing the arrow keys automatically switches tabs. Pressing the tab key selects the next element in the tab sequence, which excludes non-selected tab headers. When AutoSwitch is set to false, pressing the arrow keys or the tab key moves the focus to the next or previous tab header, but does not switch tabs. Pressing the Enter or Space keys is required to activate the tab that has the focus.
    See Also