BarcodeCreated Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Occurs when a new barcode has been created. It occurs, when a file containing barcodes has been loaded. It does not occur, when a barcode has been added with the BarcodeCollection.Add method. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
Syntax
public event BarcodeEventHandler BarcodeCreated;Public Event BarcodeCreated As BarcodeEventHandlerExamples
The following example records useful context when barcode created occurs.
textControl.BarcodeCreated += (sender, e) =>
{
Console.WriteLine($"Barcode Created at {DateTime.Now:u}");
};AddHandler textControl.BarcodeCreated,
Sub(sender, e)
Console.WriteLine($"Barcode Created at {DateTime.Now:u}")
End Sub