Référence de l’API

WrapStrategy

Cette page API est actuellement disponible en anglais. Les signatures et identifiants restent identiques dans toutes les langues.

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

Que pensez-vous de ce guide ?

© 2026 DreamNum Co., Ltd.