101
Chapter 4 ePOS-Print API
4
addHLine method
Adds horizontal line printing to the command buffer.
Draws horizontal lines.
Syntax
addHLine(x1, x2, style);
Parameter
x1: (Requiredparameter,Objecttype:Number)
Specifiesthestartpositionofthehorizontalline(indots).Specifiesanintegerfrom0to65535.
x2:(Requiredparameter,Objecttype:Number)
Specifiestheendpositionofthehorizontalline(indots).Specifiesanintegerfrom0to65535.
style:(Optionalparameter,Objecttype:String)
Specifiesthelinetype.
Return value
Exception
Notavailableinpagemode.
Constant (style) Description
LINE_THIN Solid line: Thin
LINE_MEDIUM Solid line: Medium
LINE_THICK Solid line: Thick
LINE_THIN_DOUBLE Double line: Thin
LINE_MEDIUM_DOUBLE Double line: Medium
LINE_THICK_DOUBLE Double line: Thick
undefined (When not specified) Solid line: Thin
Return value Object type
ePOS-Print Builder Object ePOS Builder
Exception Object type
Parameter " ... " is invalid Error