ReceiptPrintJob.PrintBarcodeCustomAlign 方法

定义

向打印作业添加指令,以在收据打印机站上打印具有指定数据、符号和自定义对齐方式的条形码。

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)

参数

data
String

Platform::String

winrt::hstring

要表示为条形码的数据。

symbology
UInt32

unsigned int

uint32_t

符号系统 (条形码的编码) 。

height
UInt32

unsigned int

uint32_t

条形码的高度(以像素为单位)。

width
UInt32

unsigned int

uint32_t

条形码的宽度(以像素为单位)。

textPosition
PosPrinterBarcodeTextPosition

条形码文本相对于条形码的垂直位置。

alignmentDistance
UInt32

unsigned int

uint32_t

从最左侧打印列到条形码开头的距离,以 ClaimedPosPrinter.MapMode 属性指示的度量单位表示。

实现

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)

适用于

另请参阅