---
title: "TextDecoration"
description: "Defines a horizontal line to be drawn on the text."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public value class TextDecoration internal constructor(private val mask: Int)
```


Defines a horizontal line to be drawn on the text.


## Functions

```kotlin
public operator fun plus(decoration: TextDecoration): TextDecoration
```


Creates a decoration that includes both of the TextDecorations.


```kotlin
public operator fun contains(other: TextDecoration): Boolean
```


Check whether this `TextDecoration` contains the given decoration.


## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val None: TextDecoration
```


<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val Underline: TextDecoration
```


Draws a horizontal line below the text.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val LineThrough: TextDecoration
```


Draws a horizontal line over the text.

Note: This will have no effect if used on Wear Tiles.



#### Methods

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun combine(decorations: List<TextDecoration>): TextDecoration
```


Creates a decoration that includes all the given decorations.

#### Parameters

| | |
| --- | --- |
| decorations | The decorations to be added |






