# ListViewItemDragEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [ItemDrag](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#itemdrag) event of the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) controls.

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

```csharp
public class ListViewItemDragEventArgs : EventArgs
```

{% endtab %}

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

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

Initializes a new instance of the [ItemDragEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.itemdrageventargs) class with a specified mouse button.

| Name       | Type                                                                                     | Description                                                                                                                                                       |
| ---------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **button** | [MouseButtons](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.mousebuttons) | A combination of [MouseButtons](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.mousebuttons) values that indicates which mouse buttons were pressed. |

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

Initializes a new instance of the [ItemDragEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.itemdrageventargs) class with a specified mouse button and the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) that is being dragged.

| Name       | Type                                                                                                 | Description                                                                                                                                                       |
| ---------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **button** | [MouseButtons](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.mousebuttons)             | A combination of [MouseButtons](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.mousebuttons) values that indicates which mouse buttons were pressed. |
| **item**   | [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) | The [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) being dragged.                                           |

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

[MouseButtons](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.mousebuttons): Returns a value that indicates which mouse buttons were pressed during the drag operation.

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

[ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem): Returns the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) that is being dragged.

## Used By

| Name                                                                                                                                 | Description                                                                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ListViewItemDragEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitemdrageventhandler) | Represents the method that will handle the [ItemDrag](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#itemdrag) event of a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control. |
