TextBox.TextAlignment Property

Definition

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

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBox.TextAlignment.

public:
 property TextAlignment TextAlignment { TextAlignment get(); void set(TextAlignment value); };
TextAlignment TextAlignment();

void TextAlignment(TextAlignment value);
public TextAlignment TextAlignment { get; set; }
var textAlignment = textBox.textAlignment;
textBox.textAlignment = textAlignment;
Public Property TextAlignment As TextAlignment
<TextBox TextAlignment="textAlignmentMemberName"/>

Property Value

TextAlignment

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

Applies to