Class TabChangingEventArgs
- Namespace
- SharpConsoleUI.Events
- Assembly
- SharpConsoleUI.dll
Event args for tab changing events (before tab changes, cancelable).
public class TabChangingEventArgs : EventArgs
- Inheritance
-
TabChangingEventArgs
- Inherited Members
- Extension Methods
Constructors
TabChangingEventArgs(int, int, TabPage?, TabPage?)
Initializes a new instance of TabChangingEventArgs.
public TabChangingEventArgs(int oldIndex, int newIndex, TabPage? oldTab, TabPage? newTab)
Parameters
Properties
Cancel
Set to true to cancel the tab change.
public bool Cancel { get; set; }
Property Value
NewIndex
Index of the tab being switched to.
public int NewIndex { get; }
Property Value
NewTab
The tab page being switched to.
public TabPage? NewTab { get; }
Property Value
OldIndex
Index of the currently active tab.
public int OldIndex { get; }
Property Value
OldTab
The currently active tab page.
public TabPage? OldTab { get; }