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

```kotlin
data class Range<T>(val item: T, val start: Int, val end: Int, val tag: String)
```

The information attached on the text such as a [SpanStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/SpanStyle).

#### Parameters

| | |
| --- | --- |
| item | The object attached to [AnnotatedString](/jetpack-compose/androidx.compose.ui/ui-text/classes/AnnotatedString)s. |
| start | The start of the range where [item](/jetpack-compose/androidx.compose.foundation/foundation/functions/item) takes effect. It's inclusive |
| end | The end of the range where [item](/jetpack-compose/androidx.compose.foundation/foundation/functions/item) takes effect. It's exclusive |
| tag | The tag used to distinguish the different ranges. It is useful to store custom data. And [Range](/jetpack-compose/androidx.compose.ui/ui-text/classes/AnnotatedString.Range)s with same tag can be queried with functions such as `getStringAnnotations`. |

## Secondary Constructors

```kotlin
constructor(item: T, start: Int, end: Int) : this(item, start, end, "")
```