RequestBarcodeTextAlignmentCallback Function
Description
Callback function for requesting a barcode text alignment value.
Syntax
function(<BarcodeTextAlignment> alignment)Examples
The following example demonstrates RequestBarcodeTextAlignmentCallback in a practical document-editing workflow. Callback function for requesting a barcode text alignment value.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestBarcodeTextAlignmentCallback(alignment) {
console.log("alignment:", alignment);
}
function useRequestBarcodeTextAlignmentCallback(barcode) {
barcode.getTextAlignment(requestBarcodeTextAlignmentCallback, onTxError);
}