TabControlCancelEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides data for the Selecting and Deselecting events of a TabControl control.
- C#
- VB.NET
public class TabControlCancelEventArgs : CancelEventArgs
Public Class TabControlCancelEventArgs
Inherits CancelEventArgs
Constructors
TabControlCancelEventArgs(tabPage, tabPageIndex, cancel, action)
Initializes a new instance of the TabControlCancelEventArgs class.
| Name | Type | Description |
|---|---|---|
| tabPage | TabPage | The TabPage the event is occurring for. |
| tabPageIndex | Int32 | The zero-based index of tabPage in the TabPages collection. |
| cancel | Boolean | true to cancel the tab change by default; otherwise, false. |
| action | TabControlAction | One of the TabControlAction values. |
TabControlCancelEventArgs(tabPage, tabPageIndex, newTabPageIndex, cancel, action)
Initializes a new instance of the TabControlCancelEventArgs class.
| Name | Type | Description |
|---|---|---|
| tabPage | TabPage | The TabPage the event is occurring for. |
| tabPageIndex | Int32 | The zero-based index of tabPage in the TabPages collection. |
| newTabPageIndex | Int32 | The zero-based index of tabPage in the TabPages collection. |
| cancel | Boolean | true to cancel the tab change by default; otherwise, false. |
| action | TabControlAction | One of the TabControlAction values. |
Properties
Action
TabControlAction: Returns a value indicating which event is occurring.
NewTabPageIndex
Int32: Returns the zero-based index of the TabPage being selected when processing Deselecting otherwise it returns -1.
TabPage
TabPage: Returns the TabPage the event is occurring for.
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
| Name | Description |
|---|---|
| TabControlCancelEventHandler | Represents the method that will handle the Selecting or Deselecting event of a TabControl control. |