TX Text Control .NET for WPF

GetItem Method

Method|Introduced in 19.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a particular barcode from the collection.

Syntax

GetItem()

Gets the barcode selected by the user.

public BarcodeFrame GetItem();

GetItem(int)

Gets the barcode with the specified identifier. An id can be set with the ID property.

public BarcodeFrame GetItem(int id);
ParameterDescription
id

Specifies the barcode's identifier. The method returns null, if a barcode with the specified identifier does not exist.

GetItem(string)

Gets the barcode with the specified name. A name can be set with the Name property.

public BarcodeFrame GetItem(string name);
ParameterDescription
name

Specifies the barcode's name. The method returns null, if a barcode with the specified name does not exist.

Return Value

The return value is null, if a barcode with the specified parameters could not be found. Otherwise, it is an object of the type DataVisualization.BarcodeFrame.

Examples

The following example retrieves item from the barcode collection.

var result = barcodeCollection.GetItem(100);
Console.WriteLine($"Get Item result: {result}");