TextAlignment Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified.
public enum class TextAlignment
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)]
public enum TextAlignment
[<System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)>]
type TextAlignment =
Public Enum TextAlignment
- Inheritance
- Attributes
Fields
Name | Value | Description |
---|---|---|
Left | 0 | Default. Text is aligned to the left. |
Right | 1 | Text is aligned to the right. |
Center | 2 | Text is centered. |
Justify | 3 | Text is justified. |
Examples
In the following example, the TextAlignment property is set to Left.
<FlowDocumentReader>
<FlowDocument
FontSize="24"
LineHeight="48"
>
<Paragraph TextAlignment="Left" Background="AliceBlue">
One<LineBreak/>
two two<LineBreak/>
Three Three Three<LineBreak/>
four four four four<LineBreak/>
Five Five Five Five Five
</Paragraph>
</FlowDocument>
</FlowDocumentReader>
Remarks
The enumerated values for the TextAlignment class are Left, Right, Center, and Justify.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET