# TextIndent

Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/style/TextIndent.kt+class:androidx.compose.ui.text.style.TextIndent) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  class TextIndent
  ```

*** ** * ** ***

Indents paragraph lines.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#None()` Default configuration representing no text indent. | Cmn |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#TextIndent(androidx.compose.ui.unit.TextUnit,androidx.compose.ui.unit.TextUnit)(firstLine: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit, restLine: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit)` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#copy(androidx.compose.ui.unit.TextUnit,androidx.compose.ui.unit.TextUnit)(firstLine: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit, restLine: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit)` | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#firstLine()` indentation amount for the first line | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent#restLine()` indentation amount for all lines except the first | Cmn |

## Public companion properties

### None

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val None: TextIndent
```

Default configuration representing no text indent.

## Public constructors

### TextIndent

Cmn Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.0)

```
TextIndent(firstLine: TextUnit = 0.sp, restLine: TextUnit = 0.sp)
```

| Parameters |
|---|---|
| `firstLine: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit = 0.sp` | indentation amount for the first line |
| `restLine: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit = 0.sp` | indentation amount for all lines except the first |

## Public functions

### copy

Cmn Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun copy(firstLine: TextUnit = this.firstLine, restLine: TextUnit = this.restLine): TextIndent
```

### equals

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### firstLine

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val firstLine: TextUnit
```

indentation amount for the first line

### restLine

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val restLine: TextUnit
```

indentation amount for all lines except the first