-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.TextAlignment |
winrt enum |
Specifies whether text is centered, left-aligned, or right-aligned.
<object property="textAlignmentMemberName"/>
Text is centered within the container.
Text is aligned to the left edge of the container.
Text is aligned to the right edge of the container.
Text is justified within the container.
Text alignment is inferred from the text content.
The end of the text is aligned to the edge of the container.
The beginning of the text is aligned to the edge of the container.
When the TextAlignment
property is set to DetectFromContent
, alignment is inferred from the text content of the control. For example, English text is left aligned, and Arabic text is right aligned.
RichEditBox.TextAlignment, RichTextBlock.TextAlignment, TextBlock.TextAlignment, TextBox.TextAlignment, FlowDirection, How to support bidirectional UI