Text Property
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. WPF. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the text the barcode should encrypt.
Syntax
public string Text { get; set; }Public Property Text As StringExamples
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}");
}tXBarcodeCore.Text = "Quarterly results"
If Not String.IsNullOrWhiteSpace(tXBarcodeCore.Text) Then
Console.WriteLine($"Text: {tXBarcodeCore.Text}")
End IfRemarks
Throws an ArgumentException, if the value is not valid for the conditions of the current barcode type.