textmode.js / Textmodifier / printAlign
Method: printAlign()
ts
printAlign(horizontal, vertical?): void;Sets the text alignment rules for subsequent print calls.
Parameters
| Parameter | Type | Description |
|---|---|---|
horizontal | "center" | "left" | "right" | Horizontal alignment ('left', 'center', 'right'). |
vertical? | "top" | "bottom" | "middle" | Vertical alignment ('top', 'middle', 'bottom'). Defaults to 'top'. |
Returns
void