---
title: "cutWithResult"
description: "The method for cutting text."
type: "function"
---
## API Reference

### cutWithResult

> Source set: Common

```kotlin
fun cutWithResult(): AnnotatedString?
```

The method for cutting text.

It returns the text that was cut and it is expected to be copied (stored in a Clipboard).
This overload covers the case when handling a 'cut' ClipboardEvent.
