Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.02 KB

block_textalignment.md

File metadata and controls

35 lines (24 loc) · 1.02 KB
-api-id -api-type
P:Windows.UI.Xaml.Documents.Block.TextAlignment
winrt property

Windows.UI.Xaml.Documents.Block.TextAlignment

-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