Share via


TextAlignment

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets how the text should be aligned.

<object TextAlignment="TextAlignment" .../>
value = object.TextAlignment
object.TextAlignment = value

Property Value

Type: TextAlignment Enumeration

A value of the enumeration.

This property is read/write. The default is Left.

Applies To

TextBox, TextBlock

Version Information

Silverlight 2