TextAlign

value class TextAlign


Defines the alignment of the text in its view.

Summary

Public companion functions

List<TextAlign>

Return a list containing all possible values of TextAlign.

Public companion properties

TextAlign

Align the text in the center of the container.

TextAlign

Align the text on the trailing edge of the container.

TextAlign

Align the text on the left edge of the container.

TextAlign

Align the text on the right edge of the container.

TextAlign

Align the text on the leading edge of the container.

Public functions

open String

Public companion functions

values

Added in 1.0.0
fun values(): List<TextAlign>

Return a list containing all possible values of TextAlign.

Public companion properties

Center

Added in 1.0.0
val CenterTextAlign

Align the text in the center of the container.

End

Added in 1.0.0
val EndTextAlign

Align the text on the trailing edge of the container.

For Left to Right text, this is the right edge.

For Right to Left text, like Arabic, this is the left edge.

Left

Added in 1.0.0
val LeftTextAlign

Align the text on the left edge of the container.

Right

Added in 1.0.0
val RightTextAlign

Align the text on the right edge of the container.

Start

Added in 1.0.0
val StartTextAlign

Align the text on the leading edge of the container.

For Left to Right text, this is the left edge.

For Right to Left text, like Arabic, this is the right edge.

Public functions

toString

open fun toString(): String