Export (0) Print
Expand All

TextAlignment Enumeration

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

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public enum TextAlignment
<object property="enumMemberName"/>

Member nameDescription
Supported by Silverlight for Windows PhoneCenterText is centered within the container.
Supported by Silverlight for Windows PhoneLeftText is aligned to the left edge of the container.
Supported by Silverlight for Windows PhoneRightText is aligned to the right edge of the container.
Supported by Silverlight for Windows PhoneJustifyText is justified within the container.

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

Version Notes

Silverlight 3: Justify is not a valid value in Silverlight 3.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft