# VerticalAlignmentLine

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

  ```
  class VerticalAlignmentLine : AlignmentLine
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.ui.layout.AlignmentLine](https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/AlignmentLine) ||
|   | ↳ | [androidx.compose.ui.layout.VerticalAlignmentLine](https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/VerticalAlignmentLine) |

*** ** * ** ***

A vertical `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/AlignmentLine`. Defines a vertical offset line that can be used by parent layouts usually to align or position their children horizontally. The positions of the alignment lines will be automatically inherited by parent layouts from their content, and the `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/VerticalAlignmentLine#(kotlin.Function2)` will be used to merge multiple line positions when more than one child provides a specific `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/AlignmentLine`. See `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/AlignmentLine` for more details.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/VerticalAlignmentLine#VerticalAlignmentLine(kotlin.Function2)(merger: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | Cmn |

## Public constructors

### VerticalAlignmentLine

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

```
VerticalAlignmentLine(merger: (Int, Int) -> Int)
```

| Parameters |
|---|---|
| `merger: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | How to merge two alignment line values defined by different children |