BarcodeEventArgs Class
- Namespace
TXTextControl.DataVisualization
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Barcode
Event Args
- Event
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 : EventArgsPublic Class BarcodeEventArgs
Inherits EventArgsExamples
The following example uses BarcodeEventArgs.BarcodeFrame while handling BarcodeClicked.
textControl.BarcodeClicked += (_, e) =>
{
if (e.BarcodeFrame != null)
{
e.BarcodeFrame.DescriptiveText = "Quarterly sales by region";
}
};AddHandler textControl.BarcodeClicked,
Sub(sender, e)
If e.BarcodeFrame IsNot Nothing Then
e.BarcodeFrame.DescriptiveText = "Quarterly sales by region"
End If
End SubMembers
Properties
| Property | Description |
|---|---|
| BarcodeFrame | Gets an object that represents the barcode which causes the event. It is of the type DataVisualization.BarcodeFrame. |