TextDecoration
value class TextDecoration
Defines a horizontal line to be drawn on the text.
Summary
Public companion functions |
|
|---|---|
TextDecoration |
combine(decorations: List<TextDecoration>)Creates a decoration that includes all the given decorations. |
Public companion properties |
|
|---|---|
TextDecoration |
Draws a horizontal line over the text. |
TextDecoration |
|
TextDecoration |
Draws a horizontal line below the text. |
Public functions |
|
|---|---|
operator Boolean |
contains(other: TextDecoration)Check whether this |
operator TextDecoration |
plus(decoration: TextDecoration)Creates a decoration that includes both of the TextDecorations. |
open String |
toString() |
Public companion functions
combine
fun combine(decorations: List<TextDecoration>): TextDecoration
Creates a decoration that includes all the given decorations.
| Parameters | |
|---|---|
decorations: List<TextDecoration> |
The decorations to be added |
Public companion properties
LineThrough
val LineThrough: TextDecoration
Draws a horizontal line over the text.
Note: This will have no effect if used on Wear Tiles.
Public functions
contains
operator fun contains(other: TextDecoration): Boolean
Check whether this TextDecoration contains the given decoration.
plus
operator fun plus(decoration: TextDecoration): TextDecoration
Creates a decoration that includes both of the TextDecorations.