-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.TextBox.TextAlignment |
winrt property |
Gets or sets how the text should be horizontally aligned in the text box.
<TextBox TextAlignment="textAlignmentMemberName"/>
- textAlignmentMemberName
- A named constant of the TextAlignment enumeration, for example Center.
One of the TextAlignment enumeration values. The default is Left.
This property provides the same functionality as the HorizontalTextAlignment property. If both properties are set to conflicting values, the last one set is used.