SlipPrintJob.DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) SlipPrintJob.DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) SlipPrintJob.DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) SlipPrintJob.DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) SlipPrintJob.DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) Method

Definition

Adds an instruction to the print job to print a drawn, ruled line on the paper of the slip printer station.

public : void DrawRuledLine(Platform::String positionList, PosPrinterLineDirection lineDirection, unsigned int lineWidth, PosPrinterLineStyle lineStyle, unsigned int lineColor)
void DrawRuledLine(winrt::hstring positionList, PosPrinterLineDirection lineDirection, uint32_t lineWidth, PosPrinterLineStyle lineStyle, uint32_t lineColor) const;
public void DrawRuledLine(String positionList, PosPrinterLineDirection lineDirection, UInt32 lineWidth, PosPrinterLineStyle lineStyle, UInt32 lineColor)
Public Sub DrawRuledLine(positionList As String, lineDirection As PosPrinterLineDirection, lineWidth As UInt32, lineStyle As PosPrinterLineStyle, lineColor As UInt32)
slipPrintJob.drawRuledLine(positionList, lineDirection, lineWidth, lineStyle, lineColor);

Parameters

positionList
String String String

The position parameters for the ruled line. The character string for positionList differs depending on whether lineDirection specifies a horizontal ruled line or a vertical ruled line.

lineDirection
PosPrinterLineDirection PosPrinterLineDirection PosPrinterLineDirection

The direction in which to print the ruled line.

lineWidth
UInt32 UInt32 UInt32

The width of the ruled line that the print should print. The unit of width is dot. If an unsupported value is specified, the best fit value for the printer is used.

lineStyle
PosPrinterLineStyle PosPrinterLineStyle PosPrinterLineStyle

The appearance of the ruled line, such as whether it is solid or broken, or single or double.

lineColor
UInt32 UInt32 UInt32

The color of the ruled line, as an integer value that is equal to the value of the cartridge constant used in the ClaimedSlipPrinter.ColorCartridge property. If an unsupported value is specified, the printing results may be unpredictable.

See also