# TextConfiguration

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/Text.kt+class:androidx.wear.compose.material3.TextConfiguration) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
class TextConfiguration
```

<br />

*** ** * ** ***

Class representing aspects of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Text.composable#Text(kotlin.String,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.TextUnit,androidx.compose.ui.text.font.FontStyle,androidx.compose.ui.text.font.FontWeight,androidx.compose.ui.text.font.FontFamily,androidx.compose.ui.unit.TextUnit,androidx.compose.ui.text.style.TextDecoration,androidx.compose.ui.text.style.TextAlign,androidx.compose.ui.unit.TextUnit,androidx.compose.ui.text.style.TextOverflow,kotlin.Boolean,kotlin.Int,kotlin.Int,kotlin.Function1,androidx.compose.ui.text.TextStyle)` that can be configured with `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LocalTextConfiguration()`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextConfiguration#TextConfiguration(androidx.compose.ui.text.style.TextAlign,androidx.compose.ui.text.style.TextOverflow,kotlin.Int)( textAlign: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextAlign?, overflow: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextOverflow, maxLines: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextConfiguration#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextConfiguration#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextConfiguration#maxLines()` The maximum number of lines for the text to span, wrapping if necessary. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextOverflow` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextConfiguration#overflow()` How visual overflow should be handled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextAlign?` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextConfiguration#textAlign()` The alignment of the text within the lines of the paragraph. |

## Public constructors

### TextConfiguration

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
TextConfiguration(
    textAlign: TextAlign?,
    overflow: TextOverflow,
    maxLines: Int
)
```

| Parameters |
|---|---|
| `textAlign: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextAlign?` | The alignment of the text within the lines of the paragraph. |
| `overflow: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextOverflow` | How visual overflow should be handled. |
| `maxLines: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The maximum number of lines for the text to span, wrapping if necessary. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### maxLines

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val maxLines: Int
```

The maximum number of lines for the text to span, wrapping if necessary.

### overflow

```
val overflow: TextOverflow
```

How visual overflow should be handled.

### textAlign

```
val textAlign: TextAlign?
```

The alignment of the text within the lines of the paragraph.