TextAlign

Horizontal alignment of wrapped lines inside a TextStyle's paragraph box.

Distinct from com.conamobile.pdfkmp.layout.HorizontalAlignment, which positions a whole element inside its container's cross axis. TextAlign instead controls where each line sits inside the text block's own width.

Entries

Link copied to clipboard

Left-aligned (in left-to-right scripts). The default.

Link copied to clipboard

Each line centred in the available width.

Link copied to clipboard

Right-aligned (in left-to-right scripts).

Link copied to clipboard

Word-spaced to fill the available width. The last line of every hard paragraph stays naturally aligned to the start so it doesn't gap out awkwardly — matching the convention every word processor follows.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): TextAlign

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.