# WrapStrategy

- Human documentation: [https://docs.univer.ai/reference/enums/wrap-strategy](https://docs.univer.ai/reference/enums/wrap-strategy)

- Agent Markdown: [https://docs.univer.ai/reference/enums/wrap-strategy.md](https://docs.univer.ai/reference/enums/wrap-strategy.md)

- Requested language: `en-US`

- Content language: `en-US`

- Documentation version: `1.0.0-rc.0`

- Source: [enums/wrap-strategy.mdx](https://github.com/dream-num/documentation/blob/dev/content/reference/enums/wrap-strategy.mdx)

---

How cell text behaves when it exceeds the available width. Use these values with [`FRange.setWrapStrategy`](https://docs.univer.ai/reference/facade/range.md#setwrapstrategy).

## Import

```ts
import { WrapStrategy } from '@univerjs/core'
```

## Definition

```ts
enum WrapStrategy {
  UNSPECIFIED = 0,

  OVERFLOW = 1,

  CLIP = 2,

  WRAP = 3,
}
```

## Values

* `OVERFLOW` — Lines that are longer than the cell width will be written in the next cell over, so long as that cell is empty. If the next cell over is non-empty, this behaves the same as CLIP . The text will never wrap to the next line unless the user manually inserts a new line.
* `CLIP` — Lines that are longer than the cell width will be clipped. The text will never wrap to the next line unless the user manually inserts a new line.
* `WRAP` — Words that are longer than a line are wrapped at the character level rather than clipped.

**Package:** [`@univerjs/core`](https://docs.univer.ai/reference/packages/plugins/univerjs/core.md) · [Type definitions](https://unpkg.com/@univerjs/core@1.0.0-rc.0/lib/types/types/enum/text-style.d.ts)
