HeaderPane
Main
Hide
Share Link
Print

TabPartClickedEventArgs Class

Provides data for the SftTabs.PartClicked event.

Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Inheritance

Syntax

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

Constructors

This class cannot be instantiated.

Properties

PublicMouseEvThe mouse event.
PublicPartThe part that was clicked.
PublicReasonIndicates whether the click was a single click (SftTabs.MouseDown), a double-click (MouseDown2) or a release (SftTabs.MouseUp).
PublicTabThe tab.

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

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

        private void sftTabs1_Scrolled(object sender, TabScrolledEventArgs e) {
            DumpValues("Scrolled", e);
        }

        private void sftTabs1_PartClicked(object sender, TabPartClickedEventArgs e) {
            DumpValues("PartClicked", e);
        }

        private void sftTabs1_TabCloseButtonClicked(object sender, TabEventArgs e) {
            DumpValues("TabCloseButtonClicked", e);

            // the control does not remove the tab, the application does

VB.NET View entire sample code

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
    DumpValues("Scrolled", e)
End Sub

Private Sub SftTabs1_PartClicked(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabPartClickedEventArgs) Handles SftTabs1.PartClicked
    DumpValues("PartClicked", e)
End Sub

Private Sub SftTabs1_TabCloseButtonClicked(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabCloseButtonClicked
    DumpValues("TabCloseButtonClicked", e)

    ' the control does not remove the tab, the application does

See Also Classes | SftTabs/NET 3.0