# TabControlEventArgs

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides data for the [Selected](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/..#selected) and [Deselected](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/..#deselected) events of a [TabControl](https://docs.wisej.com/api/wisej.web/containers/tabcontrol) control.

{% tabs %}
{% tab title="C#" %}

```csharp
public class TabControlEventArgs : EventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class TabControlEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) TabControlEventArgs(tabPage, tabPageIndex, action)

Initializes a new instance of the [TabControlEventArgs](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabcontroleventargs) class.

| Name             | Type                                                                                                      | Description                                                                                                                             |
| ---------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| **tabPage**      | [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage)                   | The [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage) the event is occurring for.                 |
| **tabPageIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                               | The zero-based index of *tabPage* in the [TabPages](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/..#tabpages) collection. |
| **action**       | [TabControlAction](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabcontrolaction) | One of the [TabControlAction](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabcontrolaction) values.            |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Action

[TabControlAction](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabcontrolaction): Returns a value indicating which event is occurring.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) TabPage

[TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage): Returns the [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage) the event is occurring for.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) TabPageIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the zero-based index of the [TabPage](#tabpage) in the [TabPages](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/..#tabpages) collection.

## Used By

| Name                                                                                                                  | Description                                                                                                                                                                                                                                                                                                          |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [TabControlEventHandler](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabcontroleventhandler) | Represents the method that will handle the [Selected](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/..#selected) or [Deselected](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/..#deselected) event of a [TabControl](https://docs.wisej.com/api/wisej.web/containers/tabcontrol) control. |
