Windows.UI.Xaml.Documents.Block.TextAlignment

June 22, 2022 · View on GitHub

-description

Gets or sets the horizontal alignment of the text content.

-xaml-syntax

<Paragraph TextAlignment="textAlignmentMemberName"/>

-xaml-values

textAlignmentMemberName
textAlignmentMemberNameA named constant of the TextAlignment enumeration, such as Left.
## -property-value The horizontal alignment of the text content. The default is **Left**.

-remarks

Block is a base class for Paragraph. Paragraph is the only element that you can set a TextAlignment value on in Windows Runtime XAML, unless you create a custom class based on Block.

-examples

-see-also

Run.FlowDirection, RichEditBox.TextAlignment