Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified.
Assembly: PresentationCore (in PresentationCore.dll)
Text is centered.
Text is justified.
Default. Text is aligned to the left.
Text is aligned to the right.
The enumerated values for theclass are , , , and .
In the following example, the TextAlignment property is set to .
<FlowDocumentReader> <FlowDocument FontSize="24" LineHeight="48" > <Paragraph TextAlignment="Left" Background="AliceBlue"> One<LineBreak/> two two<LineBreak/> Three Three Three<LineBreak/> four four four four<LineBreak/> Five Five Five Five Five </Paragraph> </FlowDocument> </FlowDocumentReader>
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0