---
title: "LazyGridItemSpanScope"
description: "Scope of lambdas used to calculate the spans of items in lazy grids."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
@LazyGridScopeMarker
sealed interface LazyGridItemSpanScope
```


Scope of lambdas used to calculate the spans of items in lazy grids.


## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val maxCurrentLineSpan: Int
```


The max current line (horizontal for vertical grids) the item can occupy, such that it will
be positioned on the current line.

For example if `LazyVerticalGrid` has 3 columns this value will be 3 for the first cell in
the line, 2 for the second cell, and 1 for the last one. If you return a span count larger
than `maxCurrentLineSpan` this means we can't fit this cell into the current line, so the
cell will be positioned on the next line.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val maxLineSpan: Int
```


The max line span (horizontal for vertical grids) an item can occupy. This will be the number
of columns in vertical grids or the number of rows in horizontal grids.

For example if `LazyVerticalGrid` has 3 columns this value will be 3 for each cell.




