This topic has not yet been rated - Rate this topic

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 name Description
Supported by Silverlight for Windows Phone Center Text is centered within the container.
Supported by Silverlight for Windows Phone Left Text is aligned to the left edge of the container.
Supported by Silverlight for Windows Phone Right Text is aligned to the right edge of the container.
Supported by Silverlight for Windows Phone Justify Text 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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ