---
title: "TransformedText"
description: "The transformed text with offset offset mapping"
type: "class"
---

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


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

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


```kotlin
class TransformedText(
    /** The transformed text */
    val text: AnnotatedString,

    /** The map used for bidirectional offset mapping from original to transformed text. */
    val offsetMapping: OffsetMapping,
)
```


The transformed text with offset offset mapping



