---
description: Wisej.Web.TreeNodeMouseClickEventArgs
---

# TreeNodeMouseClickEventArgs

Namespace: **Wisej.Web**

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

* [MouseEventArgs](../../general/control/wisej.web.mouseeventargs)
  * [TreeNodeMouseClickEventArgs](wisej.web.treenodemouseclickeventargs)

Provides data for the [NodeMouseClick](..#nodemouseclick) and [NodeMouseDoubleClick](..#nodemousedoubleclick) events.

{% tabs %}
{% tab title="C#" %}
```csharp
public class TreeNodeMouseClickEventArgs : MouseEventArgs
```
{% endtab %}

{% tab title="VB.NET" %}
```visual-basic
Public Class TreeNodeMouseClickEventArgs
    Inherits MouseEventArgs
```
{% endtab %}
{% endtabs %}

## Constructors

### ![](https://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)TreeNodeMouseClickEventArgs(node, button, clicks, x, y)

Initializes a new instance of the [TreeNodeMouseClickEventArgs](wisej.web.treenodemouseclickeventargs) class.

| Name       | Type                                                              | Description                                                                   |
| ---------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| **node**   | [TreeNode](wisej.web.treenode)                                    | The node that was clicked.                                                    |
| **button** | [MouseButtons](../../enumerations/wisej.web.mousebuttons)         | One of the [MouseButtons](../../enumerations/wisej.web.mousebuttons) members. |
| **clicks** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The number of clicks that occurred.                                           |
| **x**      | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The x-coordinate where the click occurred.                                    |
| **y**      | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The y-coordinate where the click occurred.                                    |

### ![](https://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)TreeNodeMouseClickEventArgs(node, button, clicks, x, y, role)

Initializes a new instance of the [TreeNodeMouseClickEventArgs](wisej.web.treenodemouseclickeventargs) class.

| Name       | Type                                                                | Description                                                                   |
| ---------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| **node**   | [TreeNode](wisej.web.treenode)                                      | The node that was clicked.                                                    |
| **button** | [MouseButtons](../../enumerations/wisej.web.mousebuttons)           | One of the [MouseButtons](../../enumerations/wisej.web.mousebuttons) members. |
| **clicks** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   | The number of clicks that occurred.                                           |
| **x**      | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   | The x-coordinate where the click occurred.                                    |
| **y**      | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   | The y-coordinate where the click occurred.                                    |
| **role**   | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) | The internal role assigned to the element that generated the pointer event.   |

## Properties

### ![](https://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)Node

[TreeNode](wisej.web.treenode): Returns the tree node that has been clicked.

## Used By

| Name                                                                       | Description                                                                                                                                                  |
| -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [TreeNodeMouseClickEventHandler](wisej.web.treenodemouseclickeventhandler) | Represents the method that will handle the [NodeMouseClick](..#nodemouseclick) and [NodeMouseDoubleClick](..#nodemousedoubleclick) events of a [TreeView](). |
