API Reference

Common enums

Common named values for content, layout, and Univer initialization.

Import these enums from @univerjs/core. Their names make code easier to read than the numeric values stored in snapshots.

PurposeEnum
Cell value interpretationCellValueType
Numeric boolean flags in snapshotsBooleanNumber
Cell and text alignmentHorizontalAlign · VerticalAlign
Text wrapping and bordersWrapStrategy · BorderStyleTypes
Initialization progressLifecycleStages
Unit creationUniverInstanceType
Locale and loggingLocaleType · LogLevel

For feature-specific values exposed as univerAPI.Enum, browse the complete Facade enum catalog. It includes values for validation, filtering, charts, shapes, Slides, Boards, Bases, and other loaded plugins.

TypeScript
import { WrapStrategy } from '@univerjs/core'const sheet = univerAPI.getActiveWorkbook()?.getActiveSheet()if (!sheet) throw new Error('No active worksheet')sheet.getRange('A1:B4').setWrapStrategy(WrapStrategy.WRAP)

How is this guide?

© 2026 DreamNum Co., Ltd.