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)