# HtmlPanelElementClickArgs

URL: https://docs.wisej.com/api/wisej.web/content/htmlpanel/wisej.web.htmlpanelelementclickargs

Version: 4.1
Namespace: **Wisej.Web**

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

Provides data for the [HtmlPanelElementClickArgs](/api/wisej.web/content/htmlpanel/wisej.web.htmlpanelelementclickargs) event handler.

- C# - VB.NET

```csharp
public class HtmlPanelElementClickArgs : EventArgs
```

```visual
Public Class HtmlPanelElementClickArgs
    Inherits EventArgs
```

## Constructors

### ![Instance member](/img/api/instance.png) HtmlPanelElementClickArgs()

Initializes a new instance of the [HtmlPanelElementClickArgs](/api/wisej.web/content/htmlpanel/wisej.web.htmlpanelelementclickargs) class.

### ![Instance member](/img/api/instance.png) HtmlPanelElementClickArgs(element, role)

Initializes a new instance of the [HtmlPanelElementClickArgs](/api/wisej.web/content/htmlpanel/wisej.web.htmlpanelelementclickargs) class.

| Name | Type | Description | **element** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Outer HTML of the clicked element. | **role** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Value of the "role" attribute of the clicked element. 

## Properties

### ![Instance member](/img/api/instance.png) Element

[String](https://docs.microsoft.com/dotnet/api/system.string) : Returns the HTML of the element that was clicked in theHtmlPanel panel.

### ![Instance member](/img/api/instance.png) Role

[String](https://docs.microsoft.com/dotnet/api/system.string) : Returns the role attribute assigned to the element that generated the event.

The value in the Role property is taken from the "role" attribute of the clicked element inside the widget.

## Used By

| Name | Description | [HtmlPanelElementClickHandler](/api/wisej.web/content/htmlpanel/wisej.web.htmlpanelelementclickhandler) | Represents the method that will handle the [ElementClick](/api/wisej.web/content/htmlpanel/#elementclick) event.
