TX Text Control .NET for Windows Forms

Text Property

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

Description

Gets or sets the text the barcode should encrypt.

Syntax

public string Text { get; set; }

Examples

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

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

Remarks

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