HeaderPane
Main
Hide
Share Link
Print

TabToolTipEventArgs Class

Provides data for the SftTabs.ShowToolTip event.

Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Inheritance

Syntax

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

Constructors

This class cannot be instantiated.

Properties

PublicAreaThe area under the mouse cursor.
PublicTabThe tab under the mouse cursor, or null.
PublicToolTipIconDefines the tooltip icon.
PublicToolTipStyleDefines the tooltip style.
PublicToolTipTextDefines the tooltip text; an empty string shows no tooltip.
PublicToolTipTitleDefines the tooltip title.

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_TabAdded(object sender, TabEventArgs e) {
            DumpValues("TabAdded", e);
        }

        private void sftTabs1_TabRemoved(object sender, TabEventArgs e) {
            DumpValues("TabRemoved", e);
        }

        private void sftTabs1_ShowToolTip(object sender, TabToolTipEventArgs e) {
            DumpValues("ShowToolTip", e);

            if (e.Area == TabHitAreaEnum.Tab && e.Tab != null && e.Tab.Text == "&Tooltips") {
                e.ToolTipIcon = ToolTipIcon.Info;
                e.ToolTipTitle = "Balloon Tooltip";
                e.ToolTipStyle = Softelvdm.SftTabsNET.Controls.ToolTipAppearanceEnum.Balloon;
                e.ToolTipText = "A simple explanatory tooltip\nfor just this tab";

VB.NET View entire sample code

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

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

Private Sub SftTabs1_ShowToolTip(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabToolTipEventArgs) Handles SftTabs1.ShowToolTip
    DumpValues("ShowToolTip", e)

    If e.Area = TabHitAreaEnum.Tab AndAlso e.Tab IsNot Nothing AndAlso e.Tab.Text = "&Tooltips" Then
        e.ToolTipIcon = ToolTipIcon.Info
        e.ToolTipTitle = "Balloon Tooltip"
        e.ToolTipStyle = Softelvdm.SftTabsNET.Controls.ToolTipAppearanceEnum.Balloon
        e.ToolTipText = "A simple explanatory tooltip" + vbLf + "for just this tab"

See Also Classes | SftTabs/NET 3.0