Expand Minimize
This topic has not yet been rated - Rate this topic

TextAlignment Enumeration

April 12, 2014

Specifies whether text is centered, left-aligned, or right-aligned.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
public enum TextAlignment
<object property="enumMemberName"/>
Member nameDescription
CenterText is centered within the container.
LeftText is aligned to the left edge of the container.
RightText is aligned to the right edge of the container.
JustifyText is justified within the container.

Justify is relevant only for certain containers, for example RichTextBox.

Version Notes

Windows Phone

 Justify is not a valid value in Windows Phone.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.