ReceiptPrintJob.PrintBarcodeCustomAlign 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指令新增至列印工作,以在收據印表機站上列印具有指定資料、符號系統及自訂對齊方式的條碼。
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)