# BarcodeFrame Constructor

> Initializes a new instance of the BarcodeFrame class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **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
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DataVisualization > BarcodeFrame Constructor
- **399 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeframe/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeframe/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeframe/constructor/llms-full.txt

---

### Description

Initializes a new instance of the BarcodeFrame class.

### Syntax

```csharp
public BarcodeFrame(object barcode);
```

```vbnet
Public Sub New(barcode As Object)
```

### Parameters

| Parameter | Description |
|---|---|
| barcode | Specifies the barcode control associated with the barcode frame. It must be of the type `TXTextControl.Barcode.TXBarcodeControl` or `TXTextControl.WPF.Barcode.TXBarcodeControl`. |

### Examples

The following example creates a Barcode Frame instance and configures its export compression quality setting for a document workflow.

```csharp
TXTextControl.DataVisualization.BarcodeFrame barcodeFrame = new("Approved");
barcodeFrame.ExportCompressionQuality = 90;
```

```vbnet
Dim barcodeFrame As New TXTextControl.DataVisualization.BarcodeFrame("Approved")
barcodeFrame.ExportCompressionQuality = 90
```

---

## Nearby

- **Previous:** [BarcodeFrame.Barcode Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeframe/barcode-property/llms-full.txt)
- **Next:** [BarcodeFrame.ExportCompressionQuality Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeframe/exportcompressionquality-property/llms-full.txt)
