API 参考

WrapStrategy

本 API 页面目前提供英文正文。代码签名与标识符不随界面语言变化。

How cell text behaves when it exceeds the available width. Use these values with FRange.setWrapStrategy.

Import

TypeScript
import { WrapStrategy } from '@univerjs/core'

Definition

TypeScript
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 · Type definitions

你觉得这篇文档如何?

© 2026 DreamNum Co., Ltd.