Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.24 KB

textbox_horizontaltextalignment.md

File metadata and controls

40 lines (24 loc) · 1.24 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.TextBox.HorizontalTextAlignment
winrt property

Microsoft.UI.Xaml.Controls.TextBox.HorizontalTextAlignment

-description

Gets or sets a value that indicates how text is aligned in the TextBox.

-xaml-syntax

<TextBox HorizontalTextAlignment="textAlignmentValue"/>

-xaml-values

textAlignmentValue
textAlignmentValueA named constant of the TextAlignment enumeration, such as Left.

-property-value

One of the TextAlignment enumeration values that specifies how text is aligned. The default is Left.

-remarks

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

Apps that target the Fall Creators Update (SDK 16299) or later should use this property instead of TextAlignment. If your app also supports previous versions, see Version adaptive apps: Use new APIs while maintaining compatibility with previous versions for more info.

-see-also

-examples