TX Text Control .NET for Windows Forms

Remove Method

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

Description

Removes a barcode from a Text Control document.

Syntax

public bool Remove(BarcodeFrame barcodeFrame);

Parameters

ParameterDescription
barcodeFrame

Specifies the barcode to remove.

Return Value

The return value is true, if the barcode could be removed. Otherwise, it is false.

Examples

The following example removes an item from the barcode collection.

if (barcodeCollection.Remove(new TXTextControl.DataVisualization.BarcodeFrame("Approved")))
{
    Console.WriteLine("Remove completed successfully.");
}