TX Text Control .NET for Windows Forms

BarcodeMoved Event

Event|Introduced in 19.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs when a barcode has been moved. It does not occur, if an inline or anchored barcode has been moved because text has been inserted. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.

Syntax

public event BarcodeEventHandler BarcodeMoved;

Examples

The following example records useful context when barcode moved occurs.

textControl.BarcodeMoved += (sender, e) =>
{
    Console.WriteLine($"Barcode Moved at {DateTime.Now:u}");
};