Supported Model:

TSP650II TSP650IISK TSP700II TSP800II TSP100IIIW TSP100IIILAN TSP100IIIBI TSP100IIIU TSP100IV mPOP MCP20 MCP20B MCP21LB MCP30 MCP31L MCP31LB MCP31C MCP31CB 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 SP700

Added in Version 1.0.0

styleAlignment(_ position: StarXpandCommand.Printer.Alignment)

Set the alignment

styleAlignment(_ position: StarXpandCommand.Printer.Alignment) -> Self

Parameter

alignment

Alignment

Alignment

Return value

This object

PrinterBuilder

Note

  • If the current position is not at the beginning of the line, executing the automatic line break in the API enables this function.

  • In SM-S210i(ESC/POS), SM-S230i(ESC/POS), SM-T300i(ESC/POS), SM-T400i(ESC/POS), this function is effective only for text data. All other data is fixed to left-justified.

  • Printing image

    ../../../../_images/alignment.png