Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 884 Bytes

textbox_textalignment.md

File metadata and controls

32 lines (23 loc) · 884 Bytes
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.TextBox.TextAlignment
winrt property

Microsoft.UI.Xaml.Controls.TextBox.TextAlignment

-description

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

-xaml-syntax

<TextBox TextAlignment="textAlignmentMemberName"/>

-xaml-values

textAlignmentMemberName
A named constant of the TextAlignment enumeration, for example Center.

-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.

-examples

-see-also