TX Text Control .NET for Windows Forms

BarcodeEventArgs Class

Class|Introduced in 19.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Inherits
  1. EventArgs
  2. BarcodeEventArgs

Description

The BarcodeEventArgs class provides data for all events that occur with barcodes. These are the TextControl.BarcodeCreated, TextControl.BarcodeDeleted, TextControl.BarcodeClicked, TextControl.BarcodeDoubleClicked, TextControl.BarcodeRightClicked, TextControl.BarcodeMoved TextControl.BarcodeSelected, TextControl.BarcodeDeselected and TextControl.BarcodeSized events.

Syntax

public class BarcodeEventArgs : EventArgs

Examples

The following example uses BarcodeEventArgs.BarcodeFrame while handling BarcodeClicked.

textControl.BarcodeClicked += (_, e) =>
{
    if (e.BarcodeFrame != null)
    {
        e.BarcodeFrame.DescriptiveText = "Quarterly sales by region";
    }
};

Members

Properties

PropertyDescription
BarcodeFrameGets an object that represents the barcode which causes the event. It is of the type DataVisualization.BarcodeFrame.