# WidgetEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [WidgetEvent](https://docs.wisej.com/api/wisej.web/general/control/..#widgetevent) event.

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

```csharp
public class WidgetEventArgs : EventArgs
```

{% endtab %}

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

```visual-basic
Public Class WidgetEventArgs
    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) WidgetEventArgs(type, data)

Initializes a new instance of the [WidgetEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.widgeteventargs) class.

| Name     | Type                                                          | Description                              |
| -------- | ------------------------------------------------------------- | ---------------------------------------- |
| **type** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The type (name) of event.                |
| **data** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The data object received with the event. |

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

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns the data object that was sent by the widget with the event.

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

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns the type (name) of the event fired by the widget.

## Used By

| Name                                                                                                    | Description                                                                                                                      |
| ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [WidgetEventHandler](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.widgeteventhandler) | Represents the method that handles the [WidgetEvent](https://docs.wisej.com/api/wisej.web/general/control/..#widgetevent) event. |
