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