public class TextAlign internal constructor(public val value: Int)
Aligns text horizontally within its container.
Members
Companion
public companion object
Properties
Left
public val Left: TextAlign
Aligns text to the left edge.
Right
public val Right: TextAlign
Aligns text to the right edge.
Center
public val Center: TextAlign
Aligns text to the center.
Justify
public val Justify: TextAlign
Stretches lines of text to fill the container width.
Lines ending with hard line breaks align to Start.
Start
public val Start: TextAlign
Aligns text to the leading edge.
Maps to the left edge for LTR, and the right edge for RTL.
End
public val End: TextAlign
Aligns text to the trailing edge.
Maps to the right edge for LTR, and the left edge for RTL.
Unspecified
public val Unspecified: TextAlign
Represents an unset TextAlign value.
Functions
values
public fun values(): List<TextAlign>
Return a list containing all possible values of TextAlign.
valueOf
public fun valueOf(value: Int): TextAlign
Creates TextAlign from value.
Useful for serialization/deserialization.
Parameters
| value | internal integer representation. |
Throws: IllegalArgumentException
if value is invalid.