({{, (RefLink[TextAlignment, paclet:ref/TextAlignment])
is an option for (RefLink[Cell, paclet:ref/Cell]), (RefLink[Style, paclet:ref/Style]) and related constructs which specifies how successive lines of text should be aligned. }})

OpenersNotesSection(Spacer1)Details

Possible settings are:

(RefLink[TextAlignment, paclet:ref/TextAlignment]) can be used both for ordinary text and for Wolfram Language expressions.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Align on the left:

t=StringJoin@@Table["abcd ",{60}];

Framed@Text[Style[t,TextAlignment->Left]]

Centered:

Framed@Text[Style[t,TextAlignment->Center]]

Align on the right:

Framed@Text[Style[t,TextAlignment->Right]]

OpenersExampleSection1(Spacer1)Scope  (1)

Line up at the position across the page:

Do[Print[Style[a,TextAlignment->a]],{a,-1,1,.5}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TextJustification, paclet:ref/TextJustification])  ▪  (RefLink[Alignment, paclet:ref/Alignment])  ▪  (RefLink[ColumnAlignments, paclet:ref/ColumnAlignments])  ▪  (RefLink[PageWidth, paclet:ref/PageWidth])  ▪  (RefLink[Pane, paclet:ref/Pane])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Cells as Wolfram Language Expressions, paclet:tutorial/CellsAsWolframLanguageExpressions])}, {▪(RefLinkPlain[Text and Font Options, paclet:tutorial/TextAndFontOptions])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Text Layout Options, paclet:guide/TextLayoutOptions])}, {▪(RefLinkPlain[Text Styling, paclet:guide/TextStyling])}, {▪(RefLinkPlain[Stylesheets, paclet:guide/Stylesheets])}})}})