Microsoft Silverlight will reach end of support after October 2021. Learn more.
Specifies whether text is centered, left-aligned, or right-aligned.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Enumeration TextAlignment
public enum TextAlignment
|Center||Text is centered within the container.|
|Left||Text is aligned to the left edge of the container.|
|Right||Text is aligned to the right edge of the container.|
|Justify||Text is justified within the container.|
Justify is relevant only for certain containers, for example RichTextBox.
Silverlight 3: Justify is not a valid value in Silverlight 3.
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.