# ToolBarButtonClickEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [ButtonClick](https://docs.wisej.com/api/wisej.web/containers/toolbar/..#buttonclick) event.

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

```csharp
public class ToolBarButtonClickEventArgs : EventArgs
```

{% endtab %}

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

```visual-basic
Public Class ToolBarButtonClickEventArgs
    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) ToolBarButtonClickEventArgs(button)

Initializes a new instance of the [ToolBarButtonClickEventArgs](https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbuttonclickeventargs) class.

| Name       | Type                                                                                             | Description                                                                                                            |
| ---------- | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| **button** | [ToolBarButton](https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton) | The [ToolBarButton](https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton) that was clicked. |

## 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) Button

[ToolBarButton](https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton): Returns or sets the [ToolBarButton](https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton) that was clicked.

## Used By

| Name                                                                                                                               | Description                                                                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ToolBarButtonClickEventHandler](https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbuttonclickeventhandler) | Represents the method that will handle the [ButtonClick](https://docs.wisej.com/api/wisej.web/containers/toolbar/..#buttonclick) event of a [ToolBar](https://docs.wisej.com/api/wisej.web/containers/toolbar). |
