Select your printer model

Parameters are refined by the selected printer.

addTextAlign method


Adds print position setting to the command buffer.

Syntax

 
addTextAlign(align);

Parameter

align

Constant

Description

ALIGN_LEFT (default)

Left alignment

ALIGN_CENTER

Center alignment

ALIGN_RIGHT

Right alignment

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

  • Specify the addTextAlign method at the beginning of a line. If this API is used elsewhere, it will be ignored.
  • This API does not work in the page mode.
  • Setting of the addTextAlign method is also applied to the raster image, NV logo, barcode, and 2D symbol.
  • Use addTextPosition method for horizontal print setting in the page mode.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top