共用方式為


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 屬性所指示的度量單位表示。

適用於

另請參閱