PosPrinter.DrawRuledLine Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Prints a drawn, ruled line on the paper of the specified printer station (receipt or slip).

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Overridable Sub DrawRuledLine ( _
    station As PrinterStation, _
    positionList As String, _
    direction As LineDirection, _
    lineWidth As Integer, _
    style As LineStyle, _
    lineColor As Integer _
)
public virtual void DrawRuledLine (
    PrinterStation station,
    string positionList,
    LineDirection direction,
    int lineWidth,
    LineStyle style,
    int lineColor
)
public:
virtual void DrawRuledLine (
    PrinterStation station, 
    String^ positionList, 
    LineDirection direction, 
    int lineWidth, 
    LineStyle style, 
    int lineColor
)
public void DrawRuledLine (
    PrinterStation station, 
    String positionList, 
    LineDirection direction, 
    int lineWidth, 
    LineStyle style, 
    int lineColor
)
public function DrawRuledLine (
    station : PrinterStation, 
    positionList : String, 
    direction : LineDirection, 
    lineWidth : int, 
    style : LineStyle, 
    lineColor : int
)

Parameters

  • station
    The PrinterStation to print to. This value must be either PrinterStation.Receipt or PrinterStation.Slip.
  • positionList
    The position parameters for the ruled line. See remarks below for more information.
  • direction
    A LineDirection value that indicates the direction of the ruled line.
  • lineWidth
    The width of the ruled line. The unit of thickness is “dot”. If an unsupported value is specified, the best fit value for the printer is used.
  • style
    A LineStyle value that indicates how the ruled line appears.
  • lineColor
    The color of the ruled line, as an integer value that is equal to the value of the cartridge constant used in the printer device properties. If an unsupported value is specified, the printing results may be unpredictable.

Remarks

DrawRuledLine is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.

The character string of the positionList is different for the specified lineDirection of a horizontal ruled line and a vertical ruled line.

The units of measure are defined by the MapMode property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace