# PlaceholderVerticalAlign

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/Placeholder.kt+class:androidx.compose.ui.text.PlaceholderVerticalAlign) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class PlaceholderVerticalAlign
  ```

*** ** * ** ***

The settings used to specify how a placeholder is vertically aligned within a text line.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/Placeholder` |   |

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#AboveBaseline()` Align the bottom of the placeholder with the baseline. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#Bottom()` Align the bottom of the placeholder with the bottom of the entire line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#Center()` Align the center of the placeholder with the center of the entire line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#TextBottom()` Align the bottom of the placeholder with the bottom of the proceeding text. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#TextCenter()` Align the center of the placeholder with the center of the proceeding text. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#TextTop()` Align the top of the placeholder with the top of the proceeding text. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#Top()` Align the top of the placeholder with the top of the entire line. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#toString()()` | Cmn |

## Public companion properties

### AboveBaseline

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

```
val AboveBaseline: PlaceholderVerticalAlign
```

Align the bottom of the placeholder with the baseline.

### Bottom

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

```
val Bottom: PlaceholderVerticalAlign
```

Align the bottom of the placeholder with the bottom of the entire line.

### Center

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

```
val Center: PlaceholderVerticalAlign
```

Align the center of the placeholder with the center of the entire line.

### TextBottom

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

```
val TextBottom: PlaceholderVerticalAlign
```

Align the bottom of the placeholder with the bottom of the proceeding text. It is different from the `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#TextBottom()` when there are texts with different font size, font or other styles in the same line. This option will use the proceeding text's bottom instead of the whole line's bottom.

### TextCenter

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

```
val TextCenter: PlaceholderVerticalAlign
```

Align the center of the placeholder with the center of the proceeding text. It is different from the `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#Center()` when there are texts with different font size, font or other styles in the same line. This option will use the proceeding text's center instead of the whole line's center.

### TextTop

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

```
val TextTop: PlaceholderVerticalAlign
```

Align the top of the placeholder with the top of the proceeding text. It is different from the `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlaceholderVerticalAlign#Top()` when there are texts with different font size, font or other styles in the same line. This option will use the proceeding text's top instead of the whole line's top.

### Top

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

```
val Top: PlaceholderVerticalAlign
```

Align the top of the placeholder with the top of the entire line.

## Public functions

### toString

Cmn

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