Provides data for events that concern one tab.
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
Inheritance
public class TabEventArgs : System.EventArgs;
Public Class TabEventArgs
Inherits System.EventArgsThis class cannot be instantiated.
![]() | Index | The position of the tab in the SftTabs.Tabs collection. |
![]() | Tab | The tab. |
![]() ![]() ![]() | Empty | Provides a value to use with events that do not have event data. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() ![]() | ToString | Returns a string that represents the current object. |
// the control paints the pages; the text color of the controls on the pages is the application's
private void SetPageColors() {
Color color = sftTabs1.DarkModeActive ? Color.White : SystemColors.ControlText;
foreach (TabClass tab in sftTabs1.Tabs)
tab.Page.ForeColor = color;
}
private void sftTabs1_TabCloseButtonClicked(object sender, TabEventArgs e) {
// the control does not remove the tab, the application does
tabImages.Remove(e.Tab);
e.Tab.Remove();
}
private void sftTabs1_CloseButtonClicked(object sender, EventArgs e) {
// the control's Close button removes the selected tab in this sample
TabClass tab = sftTabs1.SelectedTab;
' the control paints the pages; the text color of the controls on the pages is the application's
Private Sub SetPageColors()
Dim fore As Color = If(SftTabs1.DarkModeActive, Color.White, SystemColors.ControlText)
For Each tab As TabClass In SftTabs1.Tabs
tab.Page.ForeColor = fore
Next
End Sub
Private Sub SftTabs1_TabCloseButtonClicked(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabCloseButtonClicked
' the control does not remove the tab, the application does
tabImages.Remove(e.Tab)
e.Tab.Remove()
End Sub
Private Sub SftTabs1_CloseButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.CloseButtonClicked
' the control's Close button removes the selected tab in this sampleSee Also Classes | SftTabs/NET 3.0