Source set: Common
public class TextAlign internal constructor(public val value: Int)
Aligns text horizontally within its container.
Members
Companion
Source set: Common
public companion object
Properties
Left
Source set: Common
public val Left: TextAlign
Aligns text to the left edge.
Right
Source set: Common
public val Right: TextAlign
Aligns text to the right edge.
Center
Source set: Common
public val Center: TextAlign
Aligns text to the center.
Justify
Source set: Common
public val Justify: TextAlign
Stretches lines of text to fill the container width.
Lines ending with hard line breaks align to Start.
Start
Source set: Common
public val Start: TextAlign
Aligns text to the leading edge.
Maps to the left edge for LTR, and the right edge for RTL.
End
Source set: Common
public val End: TextAlign
Aligns text to the trailing edge.
Maps to the right edge for LTR, and the left edge for RTL.
Unspecified
Source set: Common
public val Unspecified: TextAlign
Represents an unset TextAlign value.
Functions
values
Source set: Common
public fun values(): List<TextAlign>
Return a list containing all possible values of TextAlign.
valueOf
Source set: Common
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.