TextBlock.TextAlignment Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets a value that indicates the horizontal alignment of text content.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<TextBlock TextAlignment="textAlignmentValue"/>
XAML Values
Property Value
Type: System.Windows.TextAlignmentThe text alignment. The default is TextAlignment.Left.
Dependency property identifier field: TextAlignmentProperty
Show: