# BarcodeTypeSettings.HasCheckValue Property

> Gets or sets a value indicating whether the current used barcode type includes a check value.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl.Barcode > BarcodeTypeSettings.HasCheckValue Property
- **518 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetypesettings/hascheckvalue-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetypesettings/hascheckvalue-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetypesettings/hascheckvalue-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether the [current used barcode type](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/barcodetype-property/llms-full.txt) includes a check value.

### Syntax

```csharp
public bool HasCheckValue { get; set; }
```

```vbnet
Public Property HasCheckValue As Boolean
```

### Examples

The following example uses `BarcodeTypeSettings.HasCheckValue` to configure has check value as part of the barcode type settings workflow. The configured value is checked before the workflow continues.

```csharp
barcodeTypeSettings.HasCheckValue = true;
if (barcodeTypeSettings.HasCheckValue)
{
    Console.WriteLine("Barcode Type Settings: Has Check Value is enabled.");
}
```

```vbnet
barcodeTypeSettings.HasCheckValue = True
If barcodeTypeSettings.HasCheckValue Then
    Console.WriteLine("Barcode Type Settings: Has Check Value is enabled.")
End If
```

### Limitations

By default the following supported barcode types include a check value: `Code128`, `Interleaved2of5`, `EAN13`, `EAN8`, `UPCA`, `Postnet`, `FourState`, `Code11`, `Code93`, `PLANET` and `RoyalMail`.

For the following barcode types this property can be used to determine whether the current used barcode type should include a check value: `Interleaved2of5`, `Code39`, `Codabar` and `Code11`.

---

## Nearby

- **Previous:** [BarcodeTypeSettings Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetypesettings/llms-full.txt)
- **Next:** [BarcodeTypeSettings.ShowCheckValue Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetypesettings/showcheckvalue-property/llms-full.txt)
