TextAlignment Property
Collapse the table of content
Expand the table of content

Block.TextAlignment Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the horizontal alignment of the text content.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public TextAlignment TextAlignment { get; set; }
<Paragraph TextAlignment="textAlignmentValue"/>

XAML Values


A named constant of the TextAlignment enumeration, such as Left.

Property Value

Type: System.Windows.TextAlignment
The horizontal alignment of the text content. The default is Left.

Dependency property identifier field: TextAlignmentProperty

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2016 Microsoft