# CollectionItemInfo

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

  ```
  class CollectionItemInfo
  ```

*** ** * ** ***

Information about the item of a collection.

A collection item is contained in a collection, it starts at a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionItemInfo#(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionItemInfo#(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` in the collection, and spans one or more rows and columns. For example, a header of two related table columns starts at the first row and the first column, spans one row and two columns.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionItemInfo#CollectionItemInfo(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( rowIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, rowSpan: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, columnIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, columnSpan: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionItemInfo#columnIndex()` the index of the column at which item is located | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionItemInfo#columnSpan()` the number of columns the item spans | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionItemInfo#rowIndex()` the index of the row at which item is located | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionItemInfo#rowSpan()` the number of rows the item spans | Cmn |

## Public constructors

### CollectionItemInfo

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

```
CollectionItemInfo(
    rowIndex: Int,
    rowSpan: Int,
    columnIndex: Int,
    columnSpan: Int
)
```

| Parameters |
|---|---|
| `rowIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the index of the row at which item is located |
| `rowSpan: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the number of rows the item spans |
| `columnIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the index of the column at which item is located |
| `columnSpan: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the number of columns the item spans |

## Public properties

### columnIndex

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

```
val columnIndex: Int
```

the index of the column at which item is located

### columnSpan

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

```
val columnSpan: Int
```

the number of columns the item spans

### rowIndex

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

```
val rowIndex: Int
```

the index of the row at which item is located

### rowSpan

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

```
val rowSpan: Int
```

the number of rows the item spans