# BarcodeEventArgs Class

> The BarcodeEventArgs class provides data for all events that occur with barcodes. These are the TextControl.BarcodeCreated, TextControl.BarcodeDeleted, TextControl.BarcodeClicked, TextControl.BarcodeDoubleClicked, TextControl.BarcodeRightClicked, TextControl.BarcodeMoved TextControl.BarcodeSelected, TextControl.BarcodeDeselected and TextControl.BarcodeSized events.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 19.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DataVisualization > BarcodeEventArgs Class
- **713 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeeventargs/llms-full.txt

---

### Description

The BarcodeEventArgs class provides data for all events that occur with barcodes. These are the [TextControl.BarcodeCreated](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodecreated-event/llms-full.txt), [TextControl.BarcodeDeleted](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodedeleted-event/llms-full.txt), [TextControl.BarcodeClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodeclicked-event/llms-full.txt), [TextControl.BarcodeDoubleClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodedoubleclicked-event/llms-full.txt), [TextControl.BarcodeRightClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcoderightclicked-event/llms-full.txt), [TextControl.BarcodeMoved](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodemoved-event/llms-full.txt) [TextControl.BarcodeSelected](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodeselected-event/llms-full.txt), [TextControl.BarcodeDeselected](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodedeselected-event/llms-full.txt) and [TextControl.BarcodeSized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodesized-event/llms-full.txt) events.

### Syntax

```csharp
public class BarcodeEventArgs : EventArgs
```

```vbnet
Public Class BarcodeEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `BarcodeEventArgs.BarcodeFrame` while handling `BarcodeClicked`.

```csharp
textControl.BarcodeClicked += (_, e) =>
{
    if (e.BarcodeFrame != null)
    {
        e.BarcodeFrame.DescriptiveText = "Quarterly sales by region";
    }
};
```

```vbnet
AddHandler textControl.BarcodeClicked,
    Sub(sender, e)
        If e.BarcodeFrame IsNot Nothing Then
            e.BarcodeFrame.DescriptiveText = "Quarterly sales by region"
        End If
    End Sub
```

---

## In This Section

- [BarcodeEventArgs.BarcodeFrame Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeeventargs/barcodeframe-property/llms-full.txt): Gets an object that represents the barcode which causes the event. It is of the type DataVisualization.BarcodeFrame.

---

## Nearby

- **Previous:** [BarcodeCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodecollection/remove-method/llms-full.txt)
- **Next:** [BarcodeEventArgs.BarcodeFrame Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeeventargs/barcodeframe-property/llms-full.txt)
