TX Text Control .NET Server

Javascript: BarcodeCollection.remove Method

Method|Introduced in 28.0

Description

Removes a barcode.

Syntax

<void> BarcodeCollection.remove(<BarcodeFrame> barcode, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
barcode

Specifies the barcode to remove.

callback

Optional. Is called when the operation completed.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates BarcodeCollection.remove in a practical document-editing workflow. It removes a barcode.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function remove(barcode) {
    TXTextControl.barcodes.remove(
        barcode,
        function() {
            console.log("remove completed.");
        },
        onTxError
    );
}