setTextAlignment

abstract fun setTextAlignment(alignment: Alignment)

Sets the text alignment for the current selection/cursor position.

Parameters

alignment

The text alignment to apply.