Windows Dev Center

Block.TextAlignment Property

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

textAlignmentValue

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

Show:
© 2015 Microsoft