Supported Model:
TSP100IV TSP100IV SK TSP100IIIW TSP100IIILAN TSP100IIIBI TSP100IIIU MCP31L MCP31LB MCP31CI MCP31CBI MCP31C MCP31CB MCP30 MCP21LB MCP20B MCP20 MCL32CI MCL32CBI POP10 POP10CI POP10CBI TSP650II TSP650IISK TSP700II TSP800II BSC10II SP700 SM-S210i(StarPRNT) SM-S210i(ESC/POS) SM-S230i(StarPRNT) SM-S230i(ESC/POS) SM-T300i(StarPRNT) SM-T300i(ESC/POS) SM-T400i(StarPRNT) SM-T400i(ESC/POS) SM-L200 SM-L300
setWidth(width: number, widthParameter?: TextWidthParameter | undefined)
Set the number of characters to print (e.g., if width is set to 8, the width to print is reserved for 8 characters. If the text is less than 8 characters, the missing space is filled with white space; if the text exceeds 8 characters, it is omitted according to ellipsizeType)
Parameter |
||
---|---|---|
width |
Number of characters to print |
|
widthParameter |
Parameters for setting the number of characters to print for text printing |
Return value |
|
---|---|
This object |