Share via


SlipPrintJob.DrawRuledLine Method

Definition

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

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)

Parameters

positionList
String

Platform::String

winrt::hstring

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

The direction in which to print the ruled line.

lineWidth
UInt32

unsigned int

uint32_t

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

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

lineColor
UInt32

unsigned int

uint32_t

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.

Implements

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)

Applies to

See also