Table of Contents

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

oldIndex int
newIndex int
oldTab TabPage
newTab TabPage

Properties

Cancel

Set to true to cancel the tab change.

public bool Cancel { get; set; }

Property Value

bool

NewIndex

Index of the tab being switched to.

public int NewIndex { get; }

Property Value

int

NewTab

The tab page being switched to.

public TabPage? NewTab { get; }

Property Value

TabPage

OldIndex

Index of the currently active tab.

public int OldIndex { get; }

Property Value

int

OldTab

The currently active tab page.

public TabPage? OldTab { get; }

Property Value

TabPage