# Span

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/ConstraintLayoutBaseScope.kt+class:androidx.constraintlayout.compose.Span) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
value class Span
```

<br />

*** ** * ** ***

Defines the spanned area (that crosses multiple columns and/or rows) that a widget will take when placed at the given position. For Grid, specify the Span with Span(position, rows, columns) For Row/Column, specify the Span with Span(position, size)

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Span#Span(kotlin.String)(description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` create a new Span containing the position and size information of the spanned area |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Span#Span(kotlin.Int,kotlin.Int)(position: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, size: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 1) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Span#Span(kotlin.Int,kotlin.Int,kotlin.Int)( position: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, rows: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 1) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, columns: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 1) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Span#description()` string to specify skip. |

## Public constructors

### Span

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
Span(description: String)
```

create a new Span containing the position and size information of the spanned area

| Parameters |
|---|---|
| `description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | string to specify skip. For Grid: "position:rowsxcolumns"; For Row/Columns: "position:size" |

### Span

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
Span(position: @IntRange(from = 0) Int, size: @IntRange(from = 1) Int)
```

### Span

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
Span(
    position: @IntRange(from = 0) Int,
    rows: @IntRange(from = 1) Int,
    columns: @IntRange(from = 1) Int
)
```

## Public properties

### description

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val description: String
```

string to specify skip. For Grid: "position:rowsxcolumns"; For Row/Columns: "position:size"