TextAlignment Enum

How the lines of a text are placed in the width of its layout.

public enum TextAlignment

Fields

NameValueDescription
Start0At the side a line starts from: the left for a left-to-right paragraph, the right for a right-to-left one.
Center1Centered.
End2At the side a line ends at: the right for a left-to-right paragraph, the left for a right-to-left one.
Justify3Each line is stretched to the width of the layout, except the last line of a paragraph and a line that cannot be stretched, which are aligned as with TextAlignment.Start. By default, the room is shared by the U+0020 spaces and the U+00A0 no-break spaces of the line; TextLayoutOptions.Justification also adds it between the characters of Chinese, Japanese, Korean and Thai text, or between every two characters. Arabic words are not lengthened (kashida).