ReceiptPrintJob.PrintBarcodeCustomAlign Method

Definition

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

public:
 virtual void PrintBarcodeCustomAlign(Platform::String ^ data, unsigned int symbology, unsigned int height, unsigned int width, PosPrinterBarcodeTextPosition textPosition, unsigned int alignmentDistance) = PrintBarcodeCustomAlign;
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 be represented 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.

Implements

M:Windows.Devices.PointOfService.IReceiptOrSlipJob.PrintBarcodeCustomAlign(System.String,System.UInt32,System.UInt32,System.UInt32,Windows.Devices.PointOfService.PosPrinterBarcodeTextPosition,System.UInt32) M:Windows.Devices.PointOfService.IReceiptOrSlipJob.PrintBarcodeCustomAlign(Platform::String,unsigned int,unsigned int,unsigned int,Windows.Devices.PointOfService.PosPrinterBarcodeTextPosition,unsigned int) M:Windows.Devices.PointOfService.IReceiptOrSlipJob.PrintBarcodeCustomAlign(winrt::hstring,uint32_t,uint32_t,uint32_t,Windows.Devices.PointOfService.PosPrinterBarcodeTextPosition,uint32_t)

Applies to

See also