SlipPrintJob.DrawRuledLine 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指令新增至列印工作,以列印紙上的繪圖、尺規線條。
public:
virtual void DrawRuledLine(Platform::String ^ positionList, PosPrinterLineDirection lineDirection, unsigned int lineWidth, PosPrinterLineStyle lineStyle, unsigned int lineColor) = DrawRuledLine;
void DrawRuledLine(winrt::hstring const& positionList, PosPrinterLineDirection const& lineDirection, uint32_t const& lineWidth, PosPrinterLineStyle const& lineStyle, uint32_t const& lineColor);
public void DrawRuledLine(string positionList, PosPrinterLineDirection lineDirection, uint lineWidth, PosPrinterLineStyle lineStyle, uint lineColor);
function drawRuledLine(positionList, lineDirection, lineWidth, lineStyle, lineColor)
Public Sub DrawRuledLine (positionList As String, lineDirection As PosPrinterLineDirection, lineWidth As UInteger, lineStyle As PosPrinterLineStyle, lineColor As UInteger)
參數
- positionList
-
String
Platform::String
winrt::hstring
尺規行的位置參數。 positionList的字元字串會根據lineDirection指定水平尺規線還是垂直尺規線而有所不同。
- lineDirection
- PosPrinterLineDirection
列印尺規線條的方向。
- lineWidth
-
UInt32
unsigned int
uint32_t
列印應該列印之尺規線條的寬度。 寬度單位為點。 如果指定了不支援的值,則會使用印表機的最適合值。
- lineStyle
- PosPrinterLineStyle
尺規線的外觀,例如是實心或中斷,還是單一或雙精度浮點數。
- lineColor
-
UInt32
unsigned int
uint32_t
尺規線條的色彩,做為整數值,等於 ClaimedSlipPrinter.ColorCartridge 屬性中使用的常數值。 如果指定了不支援的值,列印結果可能會無法預期。
實作
M:Windows.Devices.PointOfService.IReceiptOrSlipJob.DrawRuledLine(System.String,Windows.Devices.PointOfService.PosPrinterLineDirection,System.UInt32,Windows.Devices.PointOfService.PosPrinterLineStyle,System.UInt32)
M:Windows.Devices.PointOfService.IReceiptOrSlipJob.DrawRuledLine(Platform::String,Windows.Devices.PointOfService.PosPrinterLineDirection,unsigned int,Windows.Devices.PointOfService.PosPrinterLineStyle,unsigned int)
M:Windows.Devices.PointOfService.IReceiptOrSlipJob.DrawRuledLine(winrt::hstring,Windows.Devices.PointOfService.PosPrinterLineDirection,uint32_t,Windows.Devices.PointOfService.PosPrinterLineStyle,uint32_t)