TX Text Control .NET for WPF

Text Property

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

Description

Gets or sets the text the barcode should encrypt. This is a dependency property.

Syntax

public string Text { get; set; }

Examples

The following example uses TXBarcodeControl.Text to replace the txbarcode control's displayed content. The configured value is checked before the workflow continues.

tXBarcodeControl.Text = "Quarterly results";
if (!string.IsNullOrWhiteSpace(tXBarcodeControl.Text))
{
    Console.WriteLine($"Text: {tXBarcodeControl.Text}");
}

Remarks

Throws an ArgumentException, if the value is not valid for the conditions of the current barcode type.