TX Text Control .NET for WPF

HasCheckValue Property

Property|Introduced in 29.0
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.WPF.SDK as TXBarcode.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public bool HasCheckValue { get; set; }

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.

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

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.