TextAlign
-
Cmn
value class TextAlign
Aligns text horizontally within its container.
Summary
Public companion functions |
||
|---|---|---|
TextAlign |
Cmn
|
|
List<TextAlign> |
values()Return a list containing all possible values of TextAlign. |
Cmn
|
Public companion properties |
||
|---|---|---|
TextAlign |
Aligns text to the center. |
Cmn
|
TextAlign |
Aligns text to the trailing edge. |
Cmn
|
TextAlign |
Stretches lines of text to fill the container width. |
Cmn
|
TextAlign |
Aligns text to the left edge. |
Cmn
|
TextAlign |
Aligns text to the right edge. |
Cmn
|
TextAlign |
Aligns text to the leading edge. |
Cmn
|
TextAlign |
Represents an unset |
Cmn
|
Extension functions |
||
|---|---|---|
inline TextAlign |
TextAlign.takeOrElse(block: () -> TextAlign)If |
Cmn
|
Extension properties |
||
|---|---|---|
Boolean |
Returns |
Cmn
|
Public companion properties
End
val End: TextAlign
Aligns text to the trailing edge.
Maps to the right edge for LTR, and the left edge for RTL.
Justify
val Justify: TextAlign
Stretches lines of text to fill the container width.
Lines ending with hard line breaks align to Start.
Extension functions
TextAlign.takeOrElse
inline fun TextAlign.takeOrElse(block: () -> TextAlign): TextAlign
If isSpecified is true then this is returned, otherwise block is executed and its result is returned.
Extension properties
TextAlign.isSpecified
val TextAlign.isSpecified: Boolean
Returns true if this TextAlign is not TextAlign.Unspecified.
| See also | |
|---|---|
Unspecified |