# BarcodeEventArgs.BarcodeFrame Property

> Gets an object that represents the barcode which causes the event. It is of the type DataVisualization.BarcodeFrame.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 19.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DataVisualization > BarcodeEventArgs.BarcodeFrame Property
- **422 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/barcodeeventargs/barcodeframe-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/barcodeeventargs/barcodeframe-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/barcodeeventargs/barcodeframe-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public BarcodeFrame BarcodeFrame { get; }
```

```vbnet
Public ReadOnly Property BarcodeFrame As BarcodeFrame
```

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [BarcodeEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/barcodeeventargs/llms-full.txt)
- **Next:** [BarcodeFrame Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/barcodeframe/llms-full.txt)
