TextAlignment
Details
- Possible settings are:
-
Left or -1 aligned on the left Right or +1 aligned on the right Center or 0 centered x lined up at position x across the page - TextAlignment can be used both for ordinary text and for Wolfram Language expressions.
Examples
open all close allBasic Examples (1)
t = StringJoin@@Table["abcd ", {60}];Framed@Text[Style[t, TextAlignment -> Left]]Framed@Text[Style[t, TextAlignment -> Center]]Framed@Text[Style[t, TextAlignment -> Right]]Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), TextAlignment, Wolfram Language function, https://reference.wolfram.com/language/ref/TextAlignment.html.
CMS
Wolfram Language. 1996. "TextAlignment." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TextAlignment.html.
APA
Wolfram Language. (1996). TextAlignment. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TextAlignment.html
BibTeX
@misc{reference.wolfram_2026_textalignment, author="Wolfram Research", title="{TextAlignment}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/TextAlignment.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_textalignment, organization={Wolfram Research}, title={TextAlignment}, year={1996}, url={https://reference.wolfram.com/language/ref/TextAlignment.html}, note=[Accessed: 13-June-2026]}