# ItemClickEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [ItemClick](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview/..#itemclick) event.

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

```csharp
public class ItemClickEventArgs : EventArgs
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ItemClickEventArgs(item, button, clicks)

Initializes a new instance of the [ItemClickEventArgs](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventargs) class.

| Name       | Type                                                                                                      | Description                                                                                                                                                   |
| ---------- | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **item**   | [ListViewItem](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) | The [ListViewItem](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) the mouse pointer is currently hovering over.   |
| **button** | [MouseButtons](https://docs.wisej.com/api/v3.0/wisej.web/enumerations/wisej.web.mousebuttons)             | One of the [MouseButtons](https://docs.wisej.com/api/v3.0/wisej.web/enumerations/wisej.web.mousebuttons) values that indicate which mouse button was pressed. |
| **clicks** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                         | The number of times a mouse button was pressed.                                                                                                               |

## Properties

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

[MouseButtons](https://docs.wisej.com/api/v3.0/wisej.web/enumerations/wisej.web.mousebuttons): Returns which mouse button was pressed.

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

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns the number of clicks or taps.

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

[ListViewItem](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview/wisej.web.listviewitem): Returns the item that was clicked or tapped.

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

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Returns the internal role assigned to the element that generated the pointer event: checkbox, button, ...

The value in the Role property is taken from the "role" attribute of the clicked element inside the cell. You can detect clicks on custom HTML content by adding the role attribute to the custom element.

## Used By

| Name                                                                                                                        | Description                                                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ItemClickEventHandler](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventhandler) | Represents the method that will handle the [ItemClick](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview/..#itemclick) event of a [ListView](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/listview). |
