SlipPrintJob.PrintBarcode 方法

定义

向打印作业添加指令,以使用指定的数据和符号在单据打印机站上打印条形码。

public:
 virtual void PrintBarcode(Platform::String ^ data, unsigned int symbology, unsigned int height, unsigned int width, PosPrinterBarcodeTextPosition textPosition, PosPrinterAlignment alignment) = PrintBarcode;
void PrintBarcode(winrt::hstring const& data, uint32_t const& symbology, uint32_t const& height, uint32_t const& width, PosPrinterBarcodeTextPosition const& textPosition, PosPrinterAlignment const& alignment);
public void PrintBarcode(string data, uint symbology, uint height, uint width, PosPrinterBarcodeTextPosition textPosition, PosPrinterAlignment alignment);
function printBarcode(data, symbology, height, width, textPosition, alignment)
Public Sub PrintBarcode (data As String, symbology As UInteger, height As UInteger, width As UInteger, textPosition As PosPrinterBarcodeTextPosition, alignment As PosPrinterAlignment)

参数

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

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

alignment
PosPrinterAlignment

页面上条形码的水平对齐方式。

实现

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

适用于

另请参阅