RichTextBlock.TextAlignment Property

Definition

Gets or sets a value that indicates how the text is aligned in the RichTextBlock.

C#
public TextAlignment TextAlignment { get; set; }
XAML
<RichTextBlock TextAlignment="textAlignmentValue"/>

Property Value

One of the TextAlignment enumeration values that indicates how text is aligned. The default is Left.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6