# TXBarcodeCore.Size Property

> Gets or sets the size of the barcode.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXBarcode.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXBarcode.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Barcode > TXBarcodeCore.Size Property
- **335 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/size-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/size-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/size-property/llms-full.txt

---

### Description

Gets or sets the size of the barcode.

### Syntax

```csharp
public Size Size { get; set; }
```

```vbnet
Public Property Size As Size
```

### Examples

The following example uses `TXBarcodeCore.Size` to configure size as part of the txbarcode core workflow. The configured value is checked before the workflow continues.

```csharp
tXBarcodeCore.Size = new System.Drawing.Size(600, 400);
Console.WriteLine($"Size used by TXBarcode Core: {tXBarcodeCore.Size}");
```

```vbnet
tXBarcodeCore.Size = New System.Drawing.Size(600, 400)
Console.WriteLine($"Size used by TXBarcode Core: {tXBarcodeCore.Size}")
```

---

## Nearby

- **Previous:** [TXBarcodeCore.ShowText Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/showtext-property/llms-full.txt)
- **Next:** [TXBarcodeCore.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/text-property/llms-full.txt)
