# CollectionInfo

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

  ```
  class CollectionInfo
  ```

*** ** * ** ***

Information about the collection.

A collection of items has `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionInfo#(kotlin.Int,kotlin.Int)` rows and `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionInfo#(kotlin.Int,kotlin.Int)` columns. For example, a vertical list is a collection with one column, as many rows as the list items that are important for accessibility; A table is a collection with several rows and several columns.

## Summary

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

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionInfo#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionInfo#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionInfo#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionInfo#columnCount()` the number of columns in the collection, or -1 if unknown | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CollectionInfo#rowCount()` the number of rows in the collection, or -1 if unknown | Cmn |

## Public constructors

### CollectionInfo

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

```
CollectionInfo(rowCount: Int, columnCount: Int)
```

| Parameters |
|---|---|
| `rowCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the number of rows in the collection, or -1 if unknown |
| `columnCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the number of columns in the collection, or -1 if unknown |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### columnCount

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

```
val columnCount: Int
```

the number of columns in the collection, or -1 if unknown

### rowCount

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

```
val rowCount: Int
```

the number of rows in the collection, or -1 if unknown