# HorizontalAlignmentLine

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

  ```
  class HorizontalAlignmentLine : 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.HorizontalAlignmentLine](https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/HorizontalAlignmentLine) |

*** ** * ** ***

A horizontal `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/AlignmentLine`. Defines an horizontal offset line that can be used by parent layouts usually to align or position their children vertically. Text baselines (`FirstBaseline` and `LastBaseline`) are representative examples of `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/HorizontalAlignmentLine`s. For example, they can be used by `Row`, to align its children by baseline, or by `paddingFrom` to achieve a layout with a specific from the top to the baseline of the text content. 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/HorizontalAlignmentLine#(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/HorizontalAlignmentLine`. 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/HorizontalAlignmentLine#HorizontalAlignmentLine(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

### HorizontalAlignmentLine

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

```
HorizontalAlignmentLine(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 |