TextAligns

interface TextAligns

提供了一组预定义的文本水平对齐方式(TextAlign)。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getCenter(): TextAlign

文本在容器中水平居中对齐。

Link copied to clipboard
abstract fun getEnd(): TextAlign

文本在容器的结束边缘对齐。 对于从左到右的文本,这是右边缘;对于从右到左的文本,这是左边缘。

Link copied to clipboard
abstract fun getJustify(): TextAlign

拉伸文本行以填充容器的宽度(两端对齐)。

Link copied to clipboard
abstract fun getLeft(): TextAlign

文本在容器的左边缘对齐。

Link copied to clipboard
abstract fun getRight(): TextAlign

文本在容器的右边缘对齐。

Link copied to clipboard
abstract fun getStart(): TextAlign

文本在容器的起始边缘对齐。 对于从左到右的文本,这是左边缘;对于从右到左的文本,这是右边缘。

Link copied to clipboard
abstract fun getUnspecified(): TextAlign

未指定对齐方式。