TX Text Control .NET Server

GetItem Method

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

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}");