ReceiptPrintJob.DrawRuledLine 메서드

정의

영수증 프린터 스테이션의 용지에 그려진 눈금선을 인쇄하는 명령을 인쇄 작업에 추가합니다.

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

ClaimedReceiptPrinter.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)

설명

positionList 인수는 가로 또는 세로 눈금선이 그려지는지 여부에 따라 달라집니다.

가로 규칙선의 경우 positionList 는 각 줄의 시작 위치와 길이를 나타내는 쉼표로 구분된 숫자(측정 단위는 MapMode 속성에 의해 정의됨)로 구성됩니다. 여러 개의 규칙을 지정한 줄이 지정된 경우 각 쌍 뒤에 세미콜론이 옵니다. 패턴은 모든 추가 가로 눈금선에 대해 반복됩니다. 다음 예제를 고려해 보세요.

positionList = "0,500"

positionList 는 MapMode 단위 위치 "0"에서 시작하여 길이가 500 MapMode 단위로 계속되는 규칙 선이 됩니다. 다음은 여러 가로줄을 보여주는 또 다른 예입니다.

positionList = "0,200;300,100"

positionList 는 단위 위치 "0"에서 시작하여 길이가 200 단위로 계속되는 규칙 선이 됩니다. 그런 다음, 다른 줄은 위치 300에서 시작하여 길이가 100 단위로 계속됩니다.

세로 규칙선의 경우 positionList 는 세로 그리기 규칙 선의 위치를 나타내는 쉼표로 구분된 숫자(측정 단위는 MapMode 속성에 의해 정의됨)로 구성됩니다. DrawRuledLine 또는 규칙선 이스케이프 시퀀스를 호출하여 세로 규칙 줄이 변경되거나 종료될 때까지 이어지는 인쇄선의 각 위치에서 계속 세로 규칙 선이 그려집니다. positionLine 인수의 빈 문자열로 인해 세로 규칙선이 종료됩니다. 다음 예제를 고려해 보세요.

positionList = "0,100,400,500"

positionList 는 각 데이터 줄이 인쇄될 때 단위 위치 "0", "100", "400" 및 "500"에서 시작하는 4개의 규칙을 그립니다.

적용 대상

추가 정보