Share via


IReceiptOrSlipJob.PrintBarcodeCustomAlign Method

Definition

Adds an instruction to the print job to print a barcode on a receipt or slip printer station with the specified data, symbology, and custom alignment.

public:
 void PrintBarcodeCustomAlign(Platform::String ^ data, unsigned int symbology, unsigned int height, unsigned int width, PosPrinterBarcodeTextPosition textPosition, unsigned int alignmentDistance);
void PrintBarcodeCustomAlign(winrt::hstring const& data, uint32_t const& symbology, uint32_t const& height, uint32_t const& width, PosPrinterBarcodeTextPosition const& textPosition, uint32_t const& alignmentDistance);
public void PrintBarcodeCustomAlign(string data, uint symbology, uint height, uint width, PosPrinterBarcodeTextPosition textPosition, uint alignmentDistance);
function printBarcodeCustomAlign(data, symbology, height, width, textPosition, alignmentDistance)
Public Sub PrintBarcodeCustomAlign (data As String, symbology As UInteger, height As UInteger, width As UInteger, textPosition As PosPrinterBarcodeTextPosition, alignmentDistance As UInteger)

Parameters

data
String

Platform::String

winrt::hstring

The data to represent as a barcode.

symbology
UInt32

unsigned int

uint32_t

The symbology (encoding) of the barcode.

height
UInt32

unsigned int

uint32_t

The height of the barcode, in pixels.

width
UInt32

unsigned int

uint32_t

The width of the barcode, in pixels.

textPosition
PosPrinterBarcodeTextPosition

The vertical position of the barcode text relative to the barcode.

alignmentDistance
UInt32

unsigned int

uint32_t

The distance from the leftmost print column to the start of the barcode, expressed in the unit of measurement indicated by the ClaimedPosPrinter.MapMode property.

Applies to

See also