# LabelEditEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [BeforeLabelEdit](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#beforelabeledit) and [AfterLabelEdit](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#afterlabeledit) events.

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

```csharp
public class LabelEditEventArgs : EventArgs
```

{% endtab %}

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

```visual-basic
Public Class LabelEditEventArgs
    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) LabelEditEventArgs(item)

Initializes a new instance of the [LabelEditEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventargs) class with the specified index to the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) to edit or edited.

| Name     | Type                                                                                                 | Description                                                                                                                             |
| -------- | ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| **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), containing the label to edit. |

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

Initializes a new instance of the [LabelEditEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventargs) class with the specified index to the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) being edited and the new text for the label of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem).

| Name      | Type                                                                                                 | Description                                                                                                                                     |
| --------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **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), containing the label to edit.         |
| **label** | [String](https://docs.microsoft.com/dotnet/api/system.string)                                        | The new text assigned to the label of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). |

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

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether changes made to the label of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) should be canceled.

### ![](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) containing the label to edit or edited.

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

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns the new text assigned to the label of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem).

## Used By

| Name                                                                                                                   | Description                                                                                                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [LabelEditEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventhandler) | Represents the method that handles the [BeforeLabelEdit](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#beforelabeledit) and [AfterLabelEdit](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#afterlabeledit) events. |
