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