Справочник API

Sheets sub-types

Composite types referenced by workbook, worksheet, cell, and style snapshots.

Текст этой страницы API пока доступен на английском. Сигнатуры и идентификаторы не зависят от языка интерфейса.

Composite types referenced by workbook, worksheet, cell, and style snapshots. Supporting IWorkbookData, IWorksheetData, ICellData, IStyleData. Types are ordered from direct top-level fields to deeper nested structures and enums.

Overview

AbsoluteRefType

import { AbsoluteRefType } from '@univerjs/core' · Used by IRange

none: A1 row: A$1 column: $A1 all: $A$1

TypeScript
enum AbsoluteRefType {  NONE = 0,  ROW = 1,  COLUMN = 2,  ALL = 3,}

CustomData

import type { CustomData } from '@univerjs/core' · Used by ICellData · IWorkbookData · IWorksheetData · IRowData · IColumnData

TypeScript
type CustomData = Nullable<Record<string, any>>

Related types: Nullable

DateSystem

import { DateSystem } from '@univerjs/core' · Used by IWorkbookData

Workbook date serial systems supported by Univer.

TypeScript
enum DateSystem {  Date1900 = 'date1900',  Date1904 = 'date1904',}

FormulaType

import { FormulaType } from '@univerjs/core' · Used by ICellData

Formula kinds from SpreadsheetML ST_CellFormulaType.

TypeScript
enum FormulaType {  NORMAL = 0,  SHARED = 1,  ARRAY = 2,  DATA_TABLE = 3,}

IColumnData

import type { IColumnData } from '@univerjs/core' · Used by IWorksheetData

Properties of column data

TypeScript
interface IColumnData {  w?: number  hd?: BooleanNumber  s?: Nullable<IStyleData | string>  custom?: CustomData}

Related types: BooleanNumber · IStyleData · Nullable · CustomData

IColumnRange

import type { IColumnRange } from '@univerjs/core' · Used by IRange

TypeScript
interface IColumnRange extends IRangeLocation {  startColumn: number  endColumn: number}

Related types: IRangeLocation

IFreeze

import type { IFreeze } from '@univerjs/core' · Used by IWorksheetData

TypeScript
interface IFreeze {  xSplit: number  ySplit: number  startRow: number  startColumn: number}

IObjectArrayPrimitiveType

import type { IObjectArrayPrimitiveType } from '@univerjs/core' · Used by IWorksheetData · IObjectMatrixPrimitiveType

TypeScript
interface IObjectArrayPrimitiveType<T> {  [key: number]: T}

IObjectMatrixPrimitiveType

import type { IObjectMatrixPrimitiveType } from '@univerjs/core' · Used by IWorksheetData

Object Matrix Primitive Type

TypeScript
interface IObjectMatrixPrimitiveType<T> {  [key: number]: IObjectArrayPrimitiveType<T>}

Related types: IObjectArrayPrimitiveType

IPaddingData

import type { IPaddingData } from '@univerjs/core' · Used by IStyleData

Top,right,bottom,left padding

TypeScript
interface IPaddingData {  t?: number  r?: number  b?: number  l?: number}

IRowData

import type { IRowData } from '@univerjs/core' · Used by IWorksheetData

Properties of row data

TypeScript
interface IRowData {  h?: number  ia?: BooleanNumber  ah?: number  hd?: BooleanNumber  s?: Nullable<IStyleData | string>  custom?: CustomData}

Related types: BooleanNumber · IStyleData · Nullable · CustomData

IRowRange

import type { IRowRange } from '@univerjs/core' · Used by IRange

TypeScript
interface IRowRange extends IRangeLocation {  startRow: number  endRow: number}

Related types: IRangeLocation

ITextRotation

import type { ITextRotation } from '@univerjs/core' · Used by IStyleData

TypeScript
interface ITextRotation {  a: number  v?: BooleanNumber}

Related types: BooleanNumber

IWorkbookCalculationSettings

import type { IWorkbookCalculationSettings } from '@univerjs/core' · Used by IWorkbookData

TypeScript
interface IWorkbookCalculationSettings {  iterativeCalculation: boolean  maxIterations: number  maxChange: number}

IWorksheetBackgroundImage

import type { IWorksheetBackgroundImage } from '@univerjs/core' · Used by IWorksheetData

Image displayed behind the worksheet grid.

TypeScript
interface IWorksheetBackgroundImage {  source: string  imageSourceType: ImageSourceType  scaleX?: number  scaleY?: number}

Related types: ImageSourceType

RANGE_TYPE

import { RANGE_TYPE } from '@univerjs/core' · Used by IRange

TypeScript
enum RANGE_TYPE {  NORMAL = 0,  ROW = 1,  COLUMN = 2,  ALL = 3,}

SheetTypes

import { SheetTypes } from '@univerjs/core' · Used by IWorksheetData

TypeScript
enum SheetTypes {  GRID = 0,  KANBAN = 1,  GANTT = 2,  CHART = 3,}

WorksheetHiddenState

import { WorksheetHiddenState } from '@univerjs/core' · Used by IWorksheetData

Worksheet-only hiding states; row/column and cell flags still use BooleanNumber.

TypeScript
enum WorksheetHiddenState {  VISIBLE = 0,  HIDDEN = 1,  VERY_HIDDEN = 2,}

IRangeLocation

Nested type in @univerjs/core · Used by IRowRange · IColumnRange

TypeScript
interface IRangeLocation {  unitId?: string  sheetId?: string}

Насколько полезно это руководство?

© 2026 DreamNum Co., Ltd.