# Dimension.MaxCoercible

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/ConstraintLayout.kt+class:androidx.constraintlayout.compose.Dimension.MaxCoercible) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
interface Dimension.MaxCoercible : Dimension
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` that can be assigned a max bound.

## Summary

| ### Extension functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MaxCoercible.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MaxCoercible#(androidx.constraintlayout.compose.Dimension.MaxCoercible).atMost(androidx.compose.ui.unit.Dp)(dp: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to a fixed `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.constraintlayout.compose.Dimension.MaxCoercible).atMost(androidx.compose.ui.unit.Dp)` value. |

| ### Extension properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MaxCoercible.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MaxCoercible#(androidx.constraintlayout.compose.Dimension.MaxCoercible).atMostWrapContent()` Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to be the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Dimension#WRAP_DIMENSION()` size of the child. |

## Extension functions

### Dimension.MaxCoercible.atMost

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/ConstraintLayout.kt+function:atMost)

```
fun Dimension.MaxCoercible.atMost(dp: Dp): Dimension
```

Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to a fixed `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.constraintlayout.compose.Dimension.MaxCoercible).atMost(androidx.compose.ui.unit.Dp)` value.

## Extension properties

### Dimension.MaxCoercible.atMostWrapContent

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/ConstraintLayout.kt+symbol:atMostWrapContent) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Dimension.MaxCoercible.atMostWrapContent: Dimension
```

Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to be the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Dimension#WRAP_DIMENSION()` size of the child.