HeaderPane
Main
Hide
Share Link
Print

TabSwitchedEventArgs Class

Provides data for the SftTabs.Switched event.

Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Inheritance

Syntax

public class TabSwitchedEventArgs : System.EventArgs;
Public Class TabSwitchedEventArgs
    Inherits System.EventArgs

Constructors

This class cannot be instantiated.

Properties

PublicNewIndexThe position of the selected tab, or -1.
PublicOldIndexThe position of the previously selected tab, or -1.
PublicTabThe selected tab, or null.

Fields

PublicStaticInherited from System.EventArgsEmptyProvides a value to use with events that do not have event data.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

Examples

C# View entire sample code

            // e.Cancel = true; would keep the current tab
        }

        private void sftTabs1_SwitchingDisabled(object sender, TabEventArgs e) {
            DumpValues("SwitchingDisabled", e);
        }

        private void sftTabs1_Switched(object sender, TabSwitchedEventArgs e) {
            DumpValues("Switched", e);
        }

        private void sftTabs1_SelectedIndexChanged(object sender, EventArgs e) {
            DumpValues("SelectedIndexChanged", e);
        }

        private void sftTabs1_Scrolled(object sender, TabScrolledEventArgs e) {

VB.NET View entire sample code

    ' e.Cancel = True would keep the current tab
End Sub

Private Sub SftTabs1_SwitchingDisabled(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.SwitchingDisabled
    DumpValues("SwitchingDisabled", e)
End Sub

Private Sub SftTabs1_Switched(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabSwitchedEventArgs) Handles SftTabs1.Switched
    DumpValues("Switched", e)
End Sub

Private Sub SftTabs1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.SelectedIndexChanged
    DumpValues("SelectedIndexChanged", e)
End Sub

Private Sub SftTabs1_Scrolled(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabScrolledEventArgs) Handles SftTabs1.Scrolled

See Also Classes | SftTabs/NET 3.0