Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 67
addTextAlign method, addTextAlign
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 67 highlights
Chapter 4 ePOS-Print API addTextAlign method Adds the text alignment setting to the command buffer. • This API setting is applied to raster image/NV logo/barcode/two-dimensional symbol. • When using the standard mode, specify addTextAlign in "Position at the beginning of lines". • In the page mode, addTextAlign method specification cannot be used. In the page mode, use the addTextPosition method to designate the horizontal print position. • When the page mode is selected for the print mode, to set text rotation, use the addPageDirection method (p. 110) instead of this API function. Syntax addTextAlign(align); Parameter align : ( Required parameter, Object type : String) Specifies the text alignment. Constant(align) ALIGN_LEFT (default) ALIGN_CENTER ALIGN_RIGHT Description Alignment to the left Alignment to the center Alignment to the right Return value Return value ePOS-Print Builder Object Exception Object type ePOS Builder 4 Parameter " ... " is invalid Exception Object type Error Example To set alignment to the center: 67