# TXBarcodeCore.GetDefaultText Method

> Returns the default text for the specified barcode type.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **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.GetDefaultText Method
- **485 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/getdefaulttext-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/getdefaulttext-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/getdefaulttext-method/llms-full.txt

---

### Description

Returns the default text for the specified [barcode type](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt).

### Syntax

```csharp
public static string GetDefaultText(BarcodeType barcodeType);
```

```vbnet
Public Shared Function GetDefaultText(barcodeType As BarcodeType) As String
```

### Parameters

| Parameter | Description |
|---|---|
| barcodeType | Specifies the [barcode type](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt) whose default text is returned. |

### Return Value

The default text for the specified [barcode type](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt).

### Examples

The following example retrieves default text from the txbarcode core.

```csharp
var result = TXTextControl.Barcode.TXBarcodeCore.GetDefaultText(TXTextControl.Barcode.BarcodeType.QRCode);
Console.WriteLine($"Get Default Text result: {result}");
```

```vbnet
Dim result = TXTextControl.Barcode.TXBarcodeCore.GetDefaultText(TXTextControl.Barcode.BarcodeType.QRCode)
Console.WriteLine($"Get Default Text result: {result}")
```

---

## Nearby

- **Previous:** [TXBarcodeCore.ForeColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/forecolor-property/llms-full.txt)
- **Next:** [TXBarcodeCore.GetMaximumTextLength Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecore/getmaximumtextlength-method/llms-full.txt)
