---
title: "PlaceholderVerticalAlign"
description: "The settings used to specify how a placeholder is vertically aligned within a text line."
type: "class"
---

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


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

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class PlaceholderVerticalAlign
internal constructor(@Suppress("unused") private val value: Int)
```


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


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val AboveBaseline = PlaceholderVerticalAlign(1)
```


Align the bottom of the placeholder with the baseline.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Top = PlaceholderVerticalAlign(2)
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Bottom = PlaceholderVerticalAlign(3)
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Center = PlaceholderVerticalAlign(4)
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val TextTop = PlaceholderVerticalAlign(5)
```


Align the top of the placeholder with the top of the proceeding text. It is different
from the `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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val TextBottom = PlaceholderVerticalAlign(6)
```


Align the bottom of the placeholder with the bottom of the proceeding text. It is
different from the `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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val TextCenter = PlaceholderVerticalAlign(7)
```


Align the center of the placeholder with the center of the proceeding text. It is
different from the `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.





