Skip to main content
Version: 4.1

TabControlCancelEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides data for the Selecting and Deselecting events of a TabControl control.

public class TabControlCancelEventArgs : CancelEventArgs

Constructors​

Instance member TabControlCancelEventArgs(tabPage, tabPageIndex, cancel, action)​

Initializes a new instance of the TabControlCancelEventArgs class.

NameTypeDescription
tabPageTabPageThe TabPage the event is occurring for.
tabPageIndexInt32The zero-based index of tabPage in the TabPages collection.
cancelBooleantrue to cancel the tab change by default; otherwise, false.
actionTabControlActionOne of the TabControlAction values.

Instance member TabControlCancelEventArgs(tabPage, tabPageIndex, newTabPageIndex, cancel, action)​

Initializes a new instance of the TabControlCancelEventArgs class.

NameTypeDescription
tabPageTabPageThe TabPage the event is occurring for.
tabPageIndexInt32The zero-based index of tabPage in the TabPages collection.
newTabPageIndexInt32The zero-based index of tabPage in the TabPages collection.
cancelBooleantrue to cancel the tab change by default; otherwise, false.
actionTabControlActionOne of the TabControlAction values.

Properties​

Instance member Action​

TabControlAction: Returns a value indicating which event is occurring.

Instance member NewTabPageIndex​

Int32: Returns the zero-based index of the TabPage being selected when processing Deselecting otherwise it returns -1.

Instance member TabPage​

TabPage: Returns the TabPage the event is occurring for.

Instance member TabPageIndex​

Int32: Returns the zero-based index of the TabPage being selected when processing Selecting and Selected, or being deselected when processing Deselecting and Deselected.

Used By​

NameDescription
TabControlCancelEventHandlerRepresents the method that will handle the Selecting or Deselecting event of a TabControl control.