IReceiptOrSlipJob.PrintBarcodeCustomAlign 方法

定义

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

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)

参数

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 属性指示的度量单位表示。

适用于

另请参阅