Share via


TextBox.TextAlignment Property

Definition

Gets or sets how the text should be horizontally aligned in the text box.

public TextAlignment TextAlignment { get; set; }
<TextBox TextAlignment="textAlignmentMemberName"/>

Property Value

One of the TextAlignment enumeration values. The default is Left.

Remarks

This property provides the same functionality as the HorizontalTextAlignment property. If both properties are set to conflicting values, the last one set is used.

Applies to