# Docs sub-types

> Composite types referenced by document snapshots, rich-text bodies, paragraphs, and text runs.

- Human documentation: [https://docs.univer.ai/reference/types/docs-types](https://docs.univer.ai/reference/types/docs-types)

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

- Requested language: `en-US`

- Content language: `en-US`

- Documentation version: `1.6.2`

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

---

Composite types referenced by document snapshots, rich-text bodies, paragraphs, and text runs. Supporting [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md), [`ITextRun`](https://docs.univer.ai/reference/types/text-run.md), [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md). Types are ordered from direct top-level fields to deeper nested structures and enums.

## Overview [#overview]

| Type | Kind | Used by |
| --- | --- | --- |
| [`ICustomBlock`](#icustomblock) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`ICustomColumnGroup`](#icustomcolumngroup) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`ICustomDecoration`](#icustomdecoration) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`ICustomRange`](#icustomrange) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`ICustomTable`](#icustomtable) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`IDocStyles`](#idocstyles) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) |
| [`IDocTextFill`](#idoctextfill) | `interface` | [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md) |
| [`IDocTextOutline`](#idoctextoutline) | `interface` | [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md) |
| [`IDocumentBlockRange`](#idocumentblockrange) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`IDocumentCustomProperty`](#idocumentcustomproperty) | `type` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) |
| [`IDocumentNote`](#idocumentnote) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) |
| [`IDocumentSettings`](#idocumentsettings) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) |
| [`IDocumentStyle`](#idocumentstyle) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) |
| [`IDocxExportExcludedRange`](#idocxexportexcludedrange) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`IDocxNoteStory`](#idocxnotestory) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IReferenceSource`](#ireferencesource) |
| [`IDocxRawBlock`](#idocxrawblock) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`IDrawings`](#idrawings) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IReferenceSource`](#ireferencesource), [`IDocumentNote`](#idocumentnote) |
| [`IFooters`](#ifooters) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IReferenceSource`](#ireferencesource) |
| [`IHeaders`](#iheaders) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IReferenceSource`](#ireferencesource) |
| [`ILists`](#ilists) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IReferenceSource`](#ireferencesource), [`IDocumentNote`](#idocumentnote) |
| [`INoteSettings`](#inotesettings) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) |
| [`IParagraph`](#iparagraph) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`IReferenceSource`](#ireferencesource) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IFooterData`](#ifooterdata), [`IHeaderData`](#iheaderdata) |
| [`ISectionBreak`](#isectionbreak) | `interface` | [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) |
| [`ITables`](#itables) | `interface` | [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md), [`IReferenceSource`](#ireferencesource), [`IDocumentNote`](#idocumentnote), [`IDocxNoteStory`](#idocxnotestory) |
| [`TabStopAlignment`](#tabstopalignment) | `enum` | [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md), [`ITabStop`](#itabstop) |
| [`TabStopLeader`](#tabstopleader) | `enum` | [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md), [`ITabStop`](#itabstop) |
| [`BlockType`](#blocktype) | `enum` | [`ICustomBlock`](#icustomblock) |
| [`ColumnLayoutType`](#columnlayouttype) | `enum` | [`ICustomColumnGroup`](#icustomcolumngroup) |
| [`ColumnResponsiveType`](#columnresponsivetype) | `enum` | [`ICustomColumnGroup`](#icustomcolumngroup) |
| [`CustomDecorationType`](#customdecorationtype) | `enum` | [`ICustomDecoration`](#icustomdecoration) |
| [`CustomRangeType`](#customrangetype) | `enum` | [`ICustomRange`](#icustomrange) |
| [`DocTextFillGradientType`](#doctextfillgradienttype) | `type` | [`IDocTextFill`](#idoctextfill) |
| [`DocTextFillPictureMode`](#doctextfillpicturemode) | `type` | [`IDocTextFill`](#idoctextfill) |
| [`DocTextFillType`](#doctextfilltype) | `type` | [`IDocTextFill`](#idoctextfill) |
| [`DocumentBlockRangeType`](#documentblockrangetype) | `enum` | [`IDocumentBlockRange`](#idocumentblockrange) |
| [`DocumentNoteType`](#documentnotetype) | `type` | [`IDocumentNote`](#idocumentnote) |
| [`IBullet`](#ibullet) | `interface` | [`IParagraph`](#iparagraph), [`IDocStyle`](#idocstyle) |
| [`IColumn`](#icolumn) | `interface` | [`ICustomColumnGroup`](#icustomcolumngroup) |
| [`IDocDrawingBase`](#idocdrawingbase) | `interface` | [`IDrawings`](#idrawings) |
| [`IDocStyle`](#idocstyle) | `interface` | [`IDocStyles`](#idocstyles) |
| [`IDocStyleBase`](#idocstylebase) | `interface` | [`IDocumentStyle`](#idocumentstyle), [`ISectionBreak`](#isectionbreak) |
| [`IDocTextFillGradientStop`](#idoctextfillgradientstop) | `interface` | [`IDocTextFill`](#idoctextfill) |
| [`IDocumentBackground`](#idocumentbackground) | `interface` | [`IDocumentStyle`](#idocumentstyle) |
| [`IDocumentDefaultParagraphStyle`](#idocumentdefaultparagraphstyle) | `type` | [`IDocumentStyle`](#idocumentstyle) |
| [`IDocumentLayout`](#idocumentlayout) | `interface` | [`IDocumentStyle`](#idocumentstyle) |
| [`IEndnoteSettings`](#iendnotesettings) | `interface` | [`INoteSettings`](#inotesettings) |
| [`IFooterData`](#ifooterdata) | `interface` | [`IFooters`](#ifooters) |
| [`IFootnoteSettings`](#ifootnotesettings) | `interface` | [`INoteSettings`](#inotesettings) |
| [`IHeaderAndFooterBase`](#iheaderandfooterbase) | `interface` | [`IDocumentStyle`](#idocumentstyle), [`ISectionBreak`](#isectionbreak) |
| [`IHeaderData`](#iheaderdata) | `interface` | [`IHeaders`](#iheaders) |
| [`IListData`](#ilistdata) | `interface` | [`ILists`](#ilists) |
| [`INumberUnit`](#inumberunit) | `interface` | [`ICustomColumnGroup`](#icustomcolumngroup), [`ITable`](#itable), [`IColumn`](#icolumn), [`ITableRow`](#itablerow) |
| [`IParagraphStyle`](#iparagraphstyle) | `interface` | [`IParagraph`](#iparagraph), [`IDocumentDefaultParagraphStyle`](#idocumentdefaultparagraphstyle), [`IDocStyle`](#idocstyle), [`INestingLevel`](#inestinglevel) |
| [`ISectionBreakBase`](#isectionbreakbase) | `interface` | [`ISectionBreak`](#isectionbreak) |
| [`ITable`](#itable) | `interface` | [`ITables`](#itables), [`IDocStyle`](#idocstyle) |
| [`OuterShadowAlignment`](#outershadowalignment) | `type` | [`IShadowEffect`](https://docs.univer.ai/reference/types/common-types.md#ishadoweffect) |
| [`characterSpacingControlType`](#characterspacingcontroltype) | `enum` | [`IDocumentLayout`](#idocumentlayout) |
| [`ColumnSeparatorType`](#columnseparatortype) | `enum` | [`ISectionBreakBase`](#isectionbreakbase) |
| [`DocStyleType`](#docstyletype) | `enum` | [`IDocStyle`](#idocstyle) |
| [`DocumentFlavor`](#documentflavor) | `enum` | [`IDocStyleBase`](#idocstylebase) |
| [`GridType`](#gridtype) | `enum` | [`ISectionBreakBase`](#isectionbreakbase) |
| [`IDistFromText`](#idistfromtext) | `interface` | [`ITable`](#itable) |
| [`IDocDrawingPosition`](#idocdrawingposition) | `interface` | [`IDocDrawingBase`](#idocdrawingbase) |
| [`IDocumentNoteDecoration`](#idocumentnotedecoration) | `interface` | [`IFootnoteSettings`](#ifootnotesettings), [`IEndnoteSettings`](#iendnotesettings) |
| [`IDocumentRenderConfig`](#idocumentrenderconfig) | `interface` | [`IDocStyleBase`](#idocstylebase) |
| [`IDrawingParam`](#idrawingparam) | `interface` | [`IDocDrawingBase`](#idocdrawingbase) |
| [`IEndnoteProperties`](#iendnoteproperties) | `interface` | [`IEndnoteSettings`](#iendnotesettings), [`INoteProperties`](#inoteproperties) |
| [`IFootnoteProperties`](#ifootnoteproperties) | `interface` | [`IFootnoteSettings`](#ifootnotesettings), [`IEndnoteProperties`](#iendnoteproperties), [`INoteProperties`](#inoteproperties) |
| [`IMargin`](#imargin) | `interface` | [`IDocStyleBase`](#idocstylebase) |
| [`INestingLevel`](#inestinglevel) | `interface` | [`IListData`](#ilistdata) |
| [`INoteProperties`](#inoteproperties) | `interface` | [`ISectionBreakBase`](#isectionbreakbase) |
| [`IPageBorders`](#ipageborders) | `interface` | [`IDocStyleBase`](#idocstylebase) |
| [`IParagraphProperties`](#iparagraphproperties) | `interface` | [`IParagraphStyle`](#iparagraphstyle) |
| [`ISectionColumnProperties`](#isectioncolumnproperties) | `interface` | [`ISectionBreakBase`](#isectionbreakbase) |
| [`ISize`](#isize) | `interface` | [`IDocStyleBase`](#idocstylebase), [`IDocDrawingPosition`](#idocdrawingposition), [`IAbsoluteTransform`](#iabsolutetransform) |
| [`ITableAnchor`](#itableanchor) | `interface` | [`ITable`](#itable) |
| [`ITableBorderDefaults`](#itableborderdefaults) | `interface` | [`ITable`](#itable), [`ITableRow`](#itablerow) |
| [`ITableCellMargin`](#itablecellmargin) | `interface` | [`ITable`](#itable), [`ITableRow`](#itablerow), [`ITableCell`](#itablecell) |
| [`ITableColumn`](#itablecolumn) | `interface` | [`ITable`](#itable) |
| [`ITableRow`](#itablerow) | `interface` | [`IDocStyle`](#idocstyle), [`ITable`](#itable) |
| [`IWidthInTableSize`](#iwidthintablesize) | `interface` | [`ITable`](#itable), [`ITableRow`](#itablerow), [`ITableColumn`](#itablecolumn), [`ITableCell`](#itablecell) |
| [`NumberUnitType`](#numberunittype) | `enum` | [`INumberUnit`](#inumberunit) |
| [`PageOrientType`](#pageorienttype) | `enum` | [`IDocStyleBase`](#idocstylebase) |
| [`PositionedObjectLayoutType`](#positionedobjectlayouttype) | `enum` | [`IDocDrawingBase`](#idocdrawingbase) |
| [`SectionType`](#sectiontype) | `enum` | [`ISectionBreakBase`](#isectionbreakbase) |
| [`TableAlignmentType`](#tablealignmenttype) | `enum` | [`ITable`](#itable) |
| [`TableLayoutType`](#tablelayouttype) | `enum` | [`ITable`](#itable) |
| [`TableTextWrapType`](#tabletextwraptype) | `enum` | [`ITable`](#itable) |
| [`TextDirectionType`](#textdirectiontype) | `enum` | [`ISectionBreakBase`](#isectionbreakbase) |
| [`WrapTextType`](#wraptexttype) | `enum` | [`IDocDrawingBase`](#idocdrawingbase) |
| [`BulletAlignment`](#bulletalignment) | `enum` | [`INestingLevel`](#inestinglevel) |
| [`DrawingType`](#drawingtype) | `type` | [`IDrawingParam`](#idrawingparam) |
| [`FollowNumberWithType`](#follownumberwithtype) | `enum` | [`INestingLevel`](#inestinglevel) |
| [`IDrawingObjectLocks`](#idrawingobjectlocks) | `interface` | [`IDrawingParam`](#idrawingparam) |
| [`IDrawingSearch`](#idrawingsearch) | `interface` | [`IDrawingParam`](#idrawingparam) |
| [`IGroupBaseBound`](#igroupbasebound) | `interface` | [`IDrawingParam`](#idrawingparam) |
| [`IIndentStart`](#iindentstart) | `interface` | [`IParagraphProperties`](#iparagraphproperties) |
| [`IObjectPositionH`](#iobjectpositionh) | `interface` | [`ITableAnchor`](#itableanchor), [`IDocDrawingPosition`](#idocdrawingposition) |
| [`IObjectPositionV`](#iobjectpositionv) | `interface` | [`ITableAnchor`](#itableanchor), [`IDocDrawingPosition`](#idocdrawingposition) |
| [`IPageBorder`](#ipageborder) | `interface` | [`IPageBorders`](#ipageborders) |
| [`IParagraphBorder`](#iparagraphborder) | `interface` | [`IParagraphProperties`](#iparagraphproperties) |
| [`IShading`](#ishading) | `interface` | [`IParagraphProperties`](#iparagraphproperties) |
| [`ITableCell`](#itablecell) | `interface` | [`ITableRow`](#itablerow) |
| [`ITableCellBorder`](#itablecellborder) | `interface` | [`ITableBorderDefaults`](#itableborderdefaults), [`ITableCell`](#itablecell) |
| [`ITableRowSize`](#itablerowsize) | `interface` | [`ITableRow`](#itablerow) |
| [`ITransformState`](#itransformstate) | `interface` | [`IDrawingParam`](#idrawingparam) |
| [`ListGlyphType`](#listglyphtype) | `enum` | [`INestingLevel`](#inestinglevel) |
| [`NamedStyleType`](#namedstyletype) | `enum` | [`IParagraphProperties`](#iparagraphproperties) |
| [`ParagraphFontAlign`](#paragraphfontalign) | `type` | [`IParagraphProperties`](#iparagraphproperties) |
| [`SpacingRule`](#spacingrule) | `enum` | [`IParagraphProperties`](#iparagraphproperties) |
| [`TableSizeType`](#tablesizetype) | `enum` | [`IWidthInTableSize`](#iwidthintablesize) |
| [`AlignTypeH`](#aligntypeh) | `enum` | [`IObjectPositionH`](#iobjectpositionh) |
| [`AlignTypeV`](#aligntypev) | `enum` | [`IObjectPositionV`](#iobjectpositionv) |
| [`DashStyleType`](#dashstyletype) | `enum` | [`ITableCellBorder`](#itablecellborder), [`IDocsBorder`](#idocsborder) |
| [`DrawingTypeEnum`](#drawingtypeenum) | `enum` | [`DrawingType`](#drawingtype) |
| [`IAbsoluteTransform`](#iabsolutetransform) | `interface` | [`ITransformState`](#itransformstate) |
| [`IDocsBorder`](#idocsborder) | `interface` | [`IParagraphBorder`](#iparagraphborder) |
| [`IDrawingSpace`](#idrawingspace) | `interface` | [`IDrawingSearch`](#idrawingsearch) |
| [`IRotationSkewFlipTransform`](#irotationskewfliptransform) | `interface` | [`ITransformState`](#itransformstate) |
| [`ITabStop`](#itabstop) | `interface` | [`IIndentStart`](#iindentstart) |
| [`ITransformStateDisableOption`](#itransformstatedisableoption) | `interface` | [`ITransformState`](#itransformstate) |
| [`ObjectRelativeFromH`](#objectrelativefromh) | `enum` | [`IObjectPositionH`](#iobjectpositionh) |
| [`ObjectRelativeFromV`](#objectrelativefromv) | `enum` | [`IObjectPositionV`](#iobjectpositionv) |
| [`TableRowHeightRule`](#tablerowheightrule) | `enum` | [`ITableRowSize`](#itablerowsize) |
| [`VerticalAlignmentType`](#verticalalignmenttype) | `enum` | [`ITableCell`](#itablecell) |
| [`IOffset`](#ioffset) | `interface` | [`IAbsoluteTransform`](#iabsolutetransform) |
| [`IScale`](#iscale) | `interface` | [`IAbsoluteTransform`](#iabsolutetransform) |

## `ICustomBlock` [#icustomblock]

`import type { ICustomBlock } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

Custom Block

```ts
interface ICustomBlock {
  startIndex: number
  blockType?: BlockType

  blockId: string

  noteType?: 'footnote' | 'endnote' | 'separator' | 'continuationSeparator'
  noteId?: string

  docxRawXml?: string

  docxExportTs?: ITextStyle
}
```

**Related types:** [`BlockType`](#blocktype) · [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md)

## `ICustomColumnGroup` [#icustomcolumngroup]

`import type { ICustomColumnGroup } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

```ts
interface ICustomColumnGroup {
  startIndex: number

  endIndex: number

  columnGroupId: string
  columns?: IColumn[]
  gap?: INumberUnit
  layout?: ColumnLayoutType
  responsive?: ColumnResponsiveType
  version?: number
}
```

**Related types:** [`IColumn`](#icolumn) · [`INumberUnit`](#inumberunit) · [`ColumnLayoutType`](#columnlayouttype) · [`ColumnResponsiveType`](#columnresponsivetype)

## `ICustomDecoration` [#icustomdecoration]

`import type { ICustomDecoration } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

```ts
interface ICustomDecoration {
  startIndex: number

  endIndex: number
  id: string
  type: CustomDecorationType
}
```

**Related types:** [`CustomDecorationType`](#customdecorationtype)

## `ICustomRange` [#icustomrange]

`import type { ICustomRange } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

Block element, link like, disabled to self nested

```ts
interface ICustomRange<T extends Record<string, any> = Record<string, any>> {
  startIndex: number

  endIndex: number
  rangeId: string
  rangeType: CustomRangeType | number

  wholeEntity?: boolean

  properties?: T
}
```

**Related types:** [`CustomRangeType`](#customrangetype)

## `ICustomTable` [#icustomtable]

`import type { ICustomTable } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

```ts
interface ICustomTable {
  startIndex: number

  endIndex: number

  tableId: string
}
```

## `IDocStyles` [#idocstyles]

`import type { IDocStyles } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md)

Set of IStyles

```ts
interface IDocStyles {
  [styleId: string]: IDocStyle
}
```

**Related types:** [`IDocStyle`](#idocstyle)

## `IDocTextFill` [#idoctextfill]

`import type { IDocTextFill } from '@univerjs/core'` · Used by [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md)

```ts
interface IDocTextFill {
  type: DocTextFillType
  color?: string
  opacity?: number
  gradient?: {
    type?: DocTextFillGradientType
    angle?: number
    stops?: IDocTextFillGradientStop[]
  }
  picture?: {
    source?: string
    sourceType?: ImageSourceType
    opacity?: number
    mode?: DocTextFillPictureMode
    scaleX?: number
    scaleY?: number
    offsetX?: number
    offsetY?: number
  }
}
```

**Related types:** [`DocTextFillType`](#doctextfilltype) · [`DocTextFillGradientType`](#doctextfillgradienttype) · [`IDocTextFillGradientStop`](#idoctextfillgradientstop) · [`ImageSourceType`](https://docs.univer.ai/reference/types/common-types.md#imagesourcetype) · [`DocTextFillPictureMode`](#doctextfillpicturemode)

## `IDocTextOutline` [#idoctextoutline]

`import type { IDocTextOutline } from '@univerjs/core'` · Used by [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md)

```ts
interface IDocTextOutline {
  color?: string
  width?: number
}
```

## `IDocumentBlockRange` [#idocumentblockrange]

`import type { IDocumentBlockRange } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

```ts
interface IDocumentBlockRange {
  startIndex: number

  endIndex: number
  blockId: string
  blockType: DocumentBlockRangeType
}
```

**Related types:** [`DocumentBlockRangeType`](#documentblockrangetype)

## `IDocumentCustomProperty` [#idocumentcustomproperty]

`import type { IDocumentCustomProperty } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md)

```ts
type IDocumentCustomProperty =
  | { type: 'string' | 'date'; value: string }
  | { type: 'integer' | 'number'; value: number }
  | { type: 'boolean'; value: boolean }
```

## `IDocumentNote` [#idocumentnote]

`import type { IDocumentNote } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md)

Notes have editable content, but no independent page setup or nested notes.

```ts
interface IDocumentNote {
  noteId: string
  type: DocumentNoteType
  body: IDocumentBody
  tableSource?: ITables
  drawings?: IDrawings
  drawingsOrder?: string[]
  lists?: ILists

  customMark?: string

  referenceTextStyle?: ITextStyle

  showBodyReference?: boolean
}
```

**Related types:** [`DocumentNoteType`](#documentnotetype) · [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) · [`ITables`](#itables) · [`IDrawings`](#idrawings) · [`ILists`](#ilists) · [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md)

## `IDocumentSettings` [#idocumentsettings]

`import type { IDocumentSettings } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md)

```ts
interface IDocumentSettings {
  zoomRatio?: number
}
```

## `IDocumentStyle` [#idocumentstyle]

`import type { IDocumentStyle } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md)

```ts
interface IDocumentStyle extends IDocStyleBase, IDocumentLayout, IHeaderAndFooterBase {
  compatibilityFlags?: Record<string, BooleanNumber>

  compatibilitySettings?: Record<string, string>
  textStyle?: ITextStyle

  defaultFontTheme?: 'major' | 'minor'

  latinFontScheme?: { major?: string; minor?: string }

  fontFamilyFallbacks?: Record<string, string>

  fontFamilyClasses?: Record<
    string,
    'auto' | 'decorative' | 'modern' | 'roman' | 'script' | 'swiss'
  >

  eastAsiaFontScheme?: {
    major: { fontFamily?: string; scriptFonts?: Record<string, string> }
    minor: { fontFamily?: string; scriptFonts?: Record<string, string> }
    language?: string
  }
  defaultParagraphStyle?: IDocumentDefaultParagraphStyle

  defaultParagraphStyleId?: string

  defaultTableStyleId?: string
  background?: IDocumentBackground
}
```

**Related types:** [`IDocStyleBase`](#idocstylebase) · [`IDocumentLayout`](#idocumentlayout) · [`IHeaderAndFooterBase`](#iheaderandfooterbase) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md) · [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md) · [`IDocumentDefaultParagraphStyle`](#idocumentdefaultparagraphstyle) · [`IDocumentBackground`](#idocumentbackground)

## `IDocxExportExcludedRange` [#idocxexportexcludedrange]

`import type { IDocxExportExcludedRange } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

```ts
interface IDocxExportExcludedRange {
  start: number
  end: number
}
```

## `IDocxNoteStory` [#idocxnotestory]

`import type { IDocxNoteStory } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) · [`IReferenceSource`](#ireferencesource)

A note story keyed by its OOXML id, independently of its displayed number.

```ts
interface IDocxNoteStory {
  noteId: string
  type: 'normal' | 'separator' | 'continuationSeparator' | 'continuationNotice'
  body: IDocumentBody
  tableSource?: ITables
}
```

**Related types:** [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) · [`ITables`](#itables)

## `IDocxRawBlock` [#idocxrawblock]

`import type { IDocxRawBlock } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

```ts
interface IDocxRawBlock {
  startIndex: number
  xml: string
}
```

## `IDrawings` [#idrawings]

`import type { IDrawings } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) · [`IReferenceSource`](#ireferencesource) · [`IDocumentNote`](#idocumentnote)

Set of Drawings

```ts
interface IDrawings {
  [drawingId: string]: IDocDrawingBase
}
```

**Related types:** [`IDocDrawingBase`](#idocdrawingbase)

## `IFooters` [#ifooters]

`import type { IFooters } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) · [`IReferenceSource`](#ireferencesource)

Set of footer

```ts
interface IFooters {
  [footerId: string]: IFooterData
}
```

**Related types:** [`IFooterData`](#ifooterdata)

## `IHeaders` [#iheaders]

`import type { IHeaders } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) · [`IReferenceSource`](#ireferencesource)

Set of headers

```ts
interface IHeaders {
  [headerId: string]: IHeaderData
}
```

**Related types:** [`IHeaderData`](#iheaderdata)

## `ILists` [#ilists]

`import type { ILists } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) · [`IReferenceSource`](#ireferencesource) · [`IDocumentNote`](#idocumentnote)

Set of lists

```ts
interface ILists {
  [listType: string]: IListData
}
```

**Related types:** [`IListData`](#ilistdata)

## `INoteSettings` [#inotesettings]

`import type { INoteSettings } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md)

```ts
interface INoteSettings {
  footnote?: IFootnoteSettings
  endnote?: IEndnoteSettings
}
```

**Related types:** [`IFootnoteSettings`](#ifootnotesettings) · [`IEndnoteSettings`](#iendnotesettings)

## `IParagraph` [#iparagraph]

`import type { IParagraph } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

```ts
interface IParagraph {
  startIndex: number
  paragraphId: string

  headingCollapsed?: boolean

  styleId?: string
  paragraphStyle?: IParagraphStyle

  bullet?: Partial<IBullet> | null

  sourceBullet?: IBullet | null

  directBullet?: IBullet | null
}
```

**Related types:** [`IParagraphStyle`](#iparagraphstyle) · [`IBullet`](#ibullet)

## `IReferenceSource` [#ireferencesource]

`import type { IReferenceSource } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) · [`IFooterData`](#ifooterdata) · [`IHeaderData`](#iheaderdata)

```ts
interface IReferenceSource {
  tableSource?: ITables
  footers?: IFooters
  headers?: IHeaders
  footnotes?: Record<string, IDocxNoteStory>
  endnotes?: Record<string, IDocxNoteStory>
  lists?: ILists
  drawings?: IDrawings
  drawingsOrder?: string[]
  headerFooterDrawingsOrder?: string[]
}
```

**Related types:** [`ITables`](#itables) · [`IFooters`](#ifooters) · [`IHeaders`](#iheaders) · [`IDocxNoteStory`](#idocxnotestory) · [`ILists`](#ilists) · [`IDrawings`](#idrawings)

## `ISectionBreak` [#isectionbreak]

`import type { ISectionBreak } from '@univerjs/core'` · Used by [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

Properties of section break

```ts
interface ISectionBreak extends IDocStyleBase, ISectionBreakBase, IHeaderAndFooterBase {
  sectionId: string
  startIndex: number
}
```

**Related types:** [`IDocStyleBase`](#idocstylebase) · [`ISectionBreakBase`](#isectionbreakbase) · [`IHeaderAndFooterBase`](#iheaderandfooterbase)

## `ITables` [#itables]

`import type { ITables } from '@univerjs/core'` · Used by [`IDocumentData`](https://docs.univer.ai/reference/types/document-data.md) · [`IReferenceSource`](#ireferencesource) · [`IDocumentNote`](#idocumentnote) · [`IDocxNoteStory`](#idocxnotestory) · [`IDocumentNoteDecoration`](#idocumentnotedecoration)

```ts
interface ITables {
  [tableId: string]: ITable
}
```

**Related types:** [`ITable`](#itable)

## `TabStopAlignment` [#tabstopalignment]

`import { TabStopAlignment } from '@univerjs/core'` · Used by [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md) · [`ITabStop`](#itabstop)

The alignment of the tab stop.

```ts
enum TabStopAlignment {
  TAB_STOP_ALIGNMENT_UNSPECIFIED = 0, // The tab stop alignment is unspecified.
  START = 1, // The tab stop is aligned to the start of the line. This is the default.
  CENTER = 2, // The tab stop is aligned to the center of the line.
  END = 3, // The tab stop is aligned to the end of the line.
}
```

## `TabStopLeader` [#tabstopleader]

`import { TabStopLeader } from '@univerjs/core'` · Used by [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md) · [`ITabStop`](#itabstop)

```ts
enum TabStopLeader {
  TAB_STOP_LEADER_UNSPECIFIED = 0,
  NONE = 1,
  DOT = 2,
  HYPHEN = 3,
  UNDERSCORE = 4,
  HEAVY = 5,
  MIDDLE_DOT = 6,
}
```

## `BlockType` [#blocktype]

`import { BlockType } from '@univerjs/core'` · Used by [`ICustomBlock`](#icustomblock)

Type of block

```ts
enum BlockType {
  DRAWING = 0,
  CUSTOM = 1,
}
```

## `ColumnLayoutType` [#columnlayouttype]

`import { ColumnLayoutType } from '@univerjs/core'` · Used by [`ICustomColumnGroup`](#icustomcolumngroup)

```ts
enum ColumnLayoutType {
  FIXED = 'fixed',
  AUTO = 'auto',
}
```

## `ColumnResponsiveType` [#columnresponsivetype]

`import { ColumnResponsiveType } from '@univerjs/core'` · Used by [`ICustomColumnGroup`](#icustomcolumngroup)

```ts
enum ColumnResponsiveType {
  STACK = 'stack',
  SHRINK = 'shrink',
}
```

## `CustomDecorationType` [#customdecorationtype]

`import { CustomDecorationType } from '@univerjs/core'` · Used by [`ICustomDecoration`](#icustomdecoration)

```ts
enum CustomDecorationType {
  COMMENT = 0,
  DELETED = 9999,
}
```

## `CustomRangeType` [#customrangetype]

`import { CustomRangeType } from '@univerjs/core'` · Used by [`ICustomRange`](#icustomrange)

```ts
enum CustomRangeType {
  HYPERLINK = 0,
  FIELD = 1, // 17.16 Fields and Hyperlinks
  SDT = 2, // 17.5.2 Structured Document Tags
  BOOKMARK = 3,
  COMMENT = 4,
  CUSTOM = 5,
  MENTION = 6,
  UNI_FORMULA = 7,
  FOOTNOTE = 8,
  ENDNOTE = 9,
  DELTED = 9999,
}
```

## `DocTextFillGradientType` [#doctextfillgradienttype]

`import type { DocTextFillGradientType } from '@univerjs/core'` · Used by [`IDocTextFill`](#idoctextfill)

```ts
type DocTextFillGradientType = 'linear' | 'radial' | 'angular' | 'diamond'
```

## `DocTextFillPictureMode` [#doctextfillpicturemode]

`import type { DocTextFillPictureMode } from '@univerjs/core'` · Used by [`IDocTextFill`](#idoctextfill)

```ts
type DocTextFillPictureMode = 'stretch' | 'tile'
```

## `DocTextFillType` [#doctextfilltype]

`import type { DocTextFillType } from '@univerjs/core'` · Used by [`IDocTextFill`](#idoctextfill)

Properties of text style

```ts
type DocTextFillType = 'none' | 'solid' | 'gradient' | 'picture'
```

## `DocumentBlockRangeType` [#documentblockrangetype]

`import { DocumentBlockRangeType } from '@univerjs/core'` · Used by [`IDocumentBlockRange`](#idocumentblockrange)

```ts
enum DocumentBlockRangeType {
  CALLOUT = 'callout',
  QUOTE = 'quote',
  CODE = 'code',
}
```

## `DocumentNoteType` [#documentnotetype]

`import type { DocumentNoteType } from '@univerjs/core'` · Used by [`IDocumentNote`](#idocumentnote)

```ts
type DocumentNoteType = 'footnote' | 'endnote'
```

## `IBullet` [#ibullet]

`import type { IBullet } from '@univerjs/core'` · Used by [`IParagraph`](#iparagraph) · [`IDocStyle`](#idocstyle)

Properties of list

```ts
interface IBullet {
  listType: string
  listId: string
  nestingLevel: number
  startNumber?: number
  image?: {
    source: string
  }
  textStyle?: ITextStyle
}
```

**Related types:** [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md)

## `IColumn` [#icolumn]

`import type { IColumn } from '@univerjs/core'` · Used by [`ICustomColumnGroup`](#icustomcolumngroup)

```ts
interface IColumn {
  columnId: string
  widthRatio: number
  minWidth?: INumberUnit
}
```

**Related types:** [`INumberUnit`](#inumberunit)

## `IDocDrawingBase` [#idocdrawingbase]

`import type { IDocDrawingBase } from '@univerjs/core'` · Used by [`IDrawings`](#idrawings)

Properties of Drawing
20.4.2.8 inline (Inline DrawingML Object)
20.4.2.15 wrapNone (No Text Wrapping)
20.4.2.16 wrapPolygon (Wrapping Polygon)
20.4.2.17 wrapSquare (Square Wrapping)
20.4.2.18 wrapThrough (Through Wrapping)
20.4.2.19 wrapTight (Tight Wrapping)
20.4.2.20 wrapTopAndBottom (Top and Bottom Wrapping)

```ts
interface IDocDrawingBase extends IDrawingParam {
  drawingId: string

  title?: string

  description?: string

  docTransform: IDocDrawingPosition

  layoutType: PositionedObjectLayoutType

  behindDoc?: BooleanNumber

  layoutInCell?: BooleanNumber

  allowOverlap?: BooleanNumber

  relativeHeight?: number
  start?: number[]
  lineTo?: number[][]
  wrapText?: WrapTextType
  distL?: number
  distR?: number
  distT?: number
  distB?: number

  effectExtent?: { left?: number; top?: number; right?: number; bottom?: number }

  drawingMLSizeScale?: { width: number; height: number }
}
```

**Related types:** [`IDrawingParam`](#idrawingparam) · [`IDocDrawingPosition`](#idocdrawingposition) · [`PositionedObjectLayoutType`](#positionedobjectlayouttype) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md) · [`WrapTextType`](#wraptexttype)

## `IDocStyle` [#idocstyle]

`import type { IDocStyle } from '@univerjs/core'` · Used by [`IDocStyles`](#idocstyles)

```ts
interface IDocStyle {
  name: string

  customStyle?: boolean

  aliases?: string[]
  basedOn?: string
  link?: string
  type: DocStyleType
  textStyle?: ITextStyle
  paragraphStyle?: IParagraphStyle

  tableProperties?: Pick<ITable, 'cellSpacing'>

  rowProperties?: Pick<ITableRow, 'cellSpacing'>

  conditionalStyles?: Partial<
    Record<
      | 'wholeTable'
      | 'firstRow'
      | 'lastRow'
      | 'firstCol'
      | 'lastCol'
      | 'band1Horz'
      | 'band2Horz'
      | 'band1Vert'
      | 'band2Vert'
      | 'nwCell'
      | 'neCell'
      | 'swCell'
      | 'seCell',
      Pick<IDocStyle, 'textStyle' | 'paragraphStyle'>
    >
  >

  bullet?: Partial<IBullet> | null
}
```

**Related types:** [`DocStyleType`](#docstyletype) · [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md) · [`IParagraphStyle`](#iparagraphstyle) · [`ITable`](#itable) · [`ITableRow`](#itablerow)

## `IDocStyleBase` [#idocstylebase]

`import type { IDocStyleBase } from '@univerjs/core'` · Used by [`IDocumentStyle`](#idocumentstyle) · [`ISectionBreak`](#isectionbreak)

Basics properties of doc style.

```ts
interface IDocStyleBase extends IMargin {
  pageBorders?: IPageBorders
  pageNumberStart?: number

  pageNumberFormat?: string

  pageSize?: ISize

  pageOrient?: PageOrientType

  documentFlavor?: DocumentFlavor

  marginHeader?: number

  marginFooter?: number

  renderConfig?: IDocumentRenderConfig
}
```

**Related types:** [`IMargin`](#imargin) · [`IPageBorders`](#ipageborders) · [`ISize`](#isize) · [`PageOrientType`](#pageorienttype) · [`DocumentFlavor`](#documentflavor) · [`IDocumentRenderConfig`](#idocumentrenderconfig)

## `IDocTextFillGradientStop` [#idoctextfillgradientstop]

`import type { IDocTextFillGradientStop } from '@univerjs/core'` · Used by [`IDocTextFill`](#idoctextfill)

```ts
interface IDocTextFillGradientStop {
  offset: number
  color: string
  opacity?: number
}
```

## `IDocumentBackground` [#idocumentbackground]

`import type { IDocumentBackground } from '@univerjs/core'` · Used by [`IDocumentStyle`](#idocumentstyle)

```ts
interface IDocumentBackground {
  source?: string
  sourceType?: ImageSourceType
}
```

**Related types:** [`ImageSourceType`](https://docs.univer.ai/reference/types/common-types.md#imagesourcetype)

## `IDocumentDefaultParagraphStyle` [#idocumentdefaultparagraphstyle]

`import type { IDocumentDefaultParagraphStyle } from '@univerjs/core'` · Used by [`IDocumentStyle`](#idocumentstyle)

Paragraph properties that may be inherited from the document defaults.
Paragraph identity and named/text styles have their own inheritance mechanisms.

```ts
type IDocumentDefaultParagraphStyle = Omit<
  IParagraphStyle,
  | 'headingId'
  | 'namedStyleType'
  | 'outlineLevel'
  | 'textStyle'
  | 'paragraphMarkTextStyle'
  | 'paragraphMarkStyleId'
>
```

**Related types:** [`IParagraphStyle`](#iparagraphstyle)

## `IDocumentLayout` [#idocumentlayout]

`import type { IDocumentLayout } from '@univerjs/core'` · Used by [`IDocumentStyle`](#idocumentstyle)

```ts
interface IDocumentLayout {
  defaultTabStop?: number
  characterSpacingControl?: characterSpacingControlType

  useFELayout?: BooleanNumber

  splitPageBreakAndParagraphMark?: BooleanNumber

  balanceSingleByteDoubleByteWidth?: BooleanNumber

  adjustLineHeightInTable?: BooleanNumber
  paragraphLineGapDefault?: number
  spaceWidthEastAsian?: BooleanNumber

  autoHyphenation?: BooleanNumber
  consecutiveHyphenLimit?: number
  doNotHyphenateCaps?: BooleanNumber
  hyphenationZone?: number
}
```

**Related types:** [`characterSpacingControlType`](#characterspacingcontroltype) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md)

## `IEndnoteSettings` [#iendnotesettings]

`import type { IEndnoteSettings } from '@univerjs/core'` · Used by [`INoteSettings`](#inotesettings)

```ts
interface IEndnoteSettings extends IEndnoteProperties {
  separator?: IDocumentNoteDecoration
  continuationSeparator?: IDocumentNoteDecoration
  continuationNotice?: IDocumentNoteDecoration
}
```

**Related types:** [`IEndnoteProperties`](#iendnoteproperties) · [`IDocumentNoteDecoration`](#idocumentnotedecoration)

## `IFooterData` [#ifooterdata]

`import type { IFooterData } from '@univerjs/core'` · Used by [`IFooters`](#ifooters)

Properties of doc footer

```ts
interface IFooterData extends IReferenceSource {
  footerId: string
  body: IDocumentBody
}
```

**Related types:** [`IReferenceSource`](#ireferencesource) · [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

## `IFootnoteSettings` [#ifootnotesettings]

`import type { IFootnoteSettings } from '@univerjs/core'` · Used by [`INoteSettings`](#inotesettings)

```ts
interface IFootnoteSettings extends IFootnoteProperties {
  separator?: IDocumentNoteDecoration
  continuationSeparator?: IDocumentNoteDecoration
  continuationNotice?: IDocumentNoteDecoration
}
```

**Related types:** [`IFootnoteProperties`](#ifootnoteproperties) · [`IDocumentNoteDecoration`](#idocumentnotedecoration)

## `IHeaderAndFooterBase` [#iheaderandfooterbase]

`import type { IHeaderAndFooterBase } from '@univerjs/core'` · Used by [`IDocumentStyle`](#idocumentstyle) · [`ISectionBreak`](#isectionbreak)

```ts
interface IHeaderAndFooterBase {
  defaultHeaderId?: string
  defaultFooterId?: string
  evenPageHeaderId?: string
  evenPageFooterId?: string
  firstPageHeaderId?: string
  firstPageFooterId?: string
  useFirstPageHeaderFooter?: BooleanNumber
  evenAndOddHeaders?: BooleanNumber
}
```

**Related types:** [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md)

## `IHeaderData` [#iheaderdata]

`import type { IHeaderData } from '@univerjs/core'` · Used by [`IHeaders`](#iheaders)

Properties of doc header

```ts
interface IHeaderData extends IReferenceSource {
  headerId: string
  body: IDocumentBody
}
```

**Related types:** [`IReferenceSource`](#ireferencesource) · [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md)

## `IListData` [#ilistdata]

`import type { IListData } from '@univerjs/core'` · Used by [`ILists`](#ilists)

The properties of a list which describe the look and feel of bullets belonging to paragraphs associated with a list.

```ts
interface IListData {
  listType: string
  nestingLevel: INestingLevel[]

  counterIds?: string[]

  counterStarts?: Record<string, Record<number, number>>
}
```

**Related types:** [`INestingLevel`](#inestinglevel)

## `INumberUnit` [#inumberunit]

`import type { INumberUnit } from '@univerjs/core'` · Used by [`ICustomColumnGroup`](#icustomcolumngroup) · [`ITable`](#itable) · [`IColumn`](#icolumn) · [`ITableRow`](#itablerow) · [`IWidthInTableSize`](#iwidthintablesize) · [`ITableCellMargin`](#itablecellmargin) · [`IParagraphProperties`](#iparagraphproperties) · [`ITableRowSize`](#itablerowsize) · [`ITableCellBorder`](#itablecellborder) · [`IIndentStart`](#iindentstart)

```ts
interface INumberUnit {
  v: number
  u?: NumberUnitType

  fallback?: number
}
```

**Related types:** [`NumberUnitType`](#numberunittype)

## `IParagraphStyle` [#iparagraphstyle]

`import type { IParagraphStyle } from '@univerjs/core'` · Used by [`IParagraph`](#iparagraph) · [`IDocumentDefaultParagraphStyle`](#idocumentdefaultparagraphstyle) · [`IDocStyle`](#idocstyle) · [`INestingLevel`](#inestinglevel)

Properties of paragraph style

```ts
interface IParagraphStyle extends IParagraphProperties {
  textStyle?: ITextStyle

  paragraphMarkTextStyle?: ITextStyle

  paragraphMarkStyleId?: string
}
```

**Related types:** [`IParagraphProperties`](#iparagraphproperties) · [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md)

## `ISectionBreakBase` [#isectionbreakbase]

`import type { ISectionBreakBase } from '@univerjs/core'` · Used by [`ISectionBreak`](#isectionbreak)

```ts
interface ISectionBreakBase {
  noteProperties?: INoteProperties

  suppressEndnotes?: boolean

  charSpace?: number
  linePitch?: number
  gridType?: GridType

  columnProperties?: ISectionColumnProperties[]
  columnSeparatorType?: ColumnSeparatorType
  contentDirection?: TextDirection
  sectionType?: SectionType

  sectionTypeNext?: SectionType
  textDirection?: TextDirectionType
}
```

**Related types:** [`INoteProperties`](#inoteproperties) · [`GridType`](#gridtype) · [`ISectionColumnProperties`](#isectioncolumnproperties) · [`ColumnSeparatorType`](#columnseparatortype) · [`TextDirection`](https://docs.univer.ai/reference/types/common-types.md#textdirection) · [`SectionType`](#sectiontype) · [`TextDirectionType`](#textdirectiontype)

## `ITable` [#itable]

`import type { ITable } from '@univerjs/core'` · Used by [`ITables`](#itables) · [`IDocStyle`](#idocstyle)

Properties of table

```ts
interface ITable {
  styleId?: string
  tableRows: ITableRow[]
  tableColumns: ITableColumn[]
  align: TableAlignmentType
  indent: INumberUnit

  legacyIndentAdjustment?: INumberUnit
  textWrap: TableTextWrapType
  position: ITableAnchor
  dist: IDistFromText
  size: IWidthInTableSize
  tableId: string
  cellMargin?: ITableCellMargin

  cellSpacing?: INumberUnit

  borderDefaults?: ITableBorderDefaults
  layout?: TableLayoutType
  overlap?: BooleanNumber
  description?: string
}
```

**Related types:** [`ITableRow`](#itablerow) · [`ITableColumn`](#itablecolumn) · [`TableAlignmentType`](#tablealignmenttype) · [`INumberUnit`](#inumberunit) · [`TableTextWrapType`](#tabletextwraptype) · [`ITableAnchor`](#itableanchor) · [`IDistFromText`](#idistfromtext) · [`IWidthInTableSize`](#iwidthintablesize) · [`ITableCellMargin`](#itablecellmargin) · [`ITableBorderDefaults`](#itableborderdefaults) · [`TableLayoutType`](#tablelayouttype) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md)

## `OuterShadowAlignment` [#outershadowalignment]

`import type { OuterShadowAlignment } from '@univerjs/core'` · Used by [`IShadowEffect`](https://docs.univer.ai/reference/types/common-types.md#ishadoweffect)

```ts
type OuterShadowAlignment = 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br'
```

## `characterSpacingControlType` [#characterspacingcontroltype]

`import { characterSpacingControlType } from '@univerjs/core'` · Used by [`IDocumentLayout`](#idocumentlayout)

```ts
enum characterSpacingControlType {
  compressPunctuation = 0,
  compressPunctuationAndJapaneseKana = 1,
  doNotCompress = 2,
}
```

## `ColumnSeparatorType` [#columnseparatortype]

`import { ColumnSeparatorType } from '@univerjs/core'` · Used by [`ISectionBreakBase`](#isectionbreakbase)

The style of column separators between columns.

```ts
enum ColumnSeparatorType {
  COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0, // An unspecified column separator style.
  NONE = 1, // No column separator lines between columns.
  BETWEEN_EACH_COLUMN = 2, // Renders a column separator line between each column.
}
```

## `DocStyleType` [#docstyletype]

`import { DocStyleType } from '@univerjs/core'` · Used by [`IDocStyle`](#idocstyle)

```ts
enum DocStyleType {
  character = 0,
  paragraph = 1,
  table = 2,
  numbering = 3,
}
```

## `DocumentFlavor` [#documentflavor]

`import { DocumentFlavor } from '@univerjs/core'` · Used by [`IDocStyleBase`](#idocstylebase)

```ts
enum DocumentFlavor {
  UNSPECIFIED = 0,
  TRADITIONAL = 1,
  MODERN = 2,
  DRAWINGML = 3,
}
```

## `GridType` [#gridtype]

`import { GridType } from '@univerjs/core'` · Used by [`ISectionBreakBase`](#isectionbreakbase)

```ts
enum GridType {
  DEFAULT = 0,
  LINES = 1,
  LINES_AND_CHARS = 2,
  SNAP_TO_CHARS = 3,
}
```

## `IDistFromText` [#idistfromtext]

`import type { IDistFromText } from '@univerjs/core'` · Used by [`ITable`](#itable)

```ts
interface IDistFromText {
  distT: number
  distB: number
  distL: number
  distR: number
}
```

## `IDocDrawingPosition` [#idocdrawingposition]

`import type { IDocDrawingPosition } from '@univerjs/core'` · Used by [`IDocDrawingBase`](#idocdrawingbase)

Properties of a draw object

```ts
interface IDocDrawingPosition {
  size: ISize
  positionH: IObjectPositionH
  positionV: IObjectPositionV
  angle: number

  flipX?: boolean

  flipY?: boolean
}
```

**Related types:** [`ISize`](#isize) · [`IObjectPositionH`](#iobjectpositionh) · [`IObjectPositionV`](#iobjectpositionv)

## `IDocumentNoteDecoration` [#idocumentnotedecoration]

`import type { IDocumentNoteDecoration } from '@univerjs/core'` · Used by [`IFootnoteSettings`](#ifootnotesettings) · [`IEndnoteSettings`](#iendnotesettings)

Editable note decorations may contain tables as well as ordinary paragraphs.

```ts
interface IDocumentNoteDecoration extends IDocumentBody {
  tableSource?: ITables
}
```

**Related types:** [`IDocumentBody`](https://docs.univer.ai/reference/types/document-body.md) · [`ITables`](#itables)

## `IDocumentRenderConfig` [#idocumentrenderconfig]

`import type { IDocumentRenderConfig } from '@univerjs/core'` · Used by [`IDocStyleBase`](#idocstylebase)

the alignment mode is returned with respect to the offset of the sheet cell,
because the document needs to render the layout for cells and
support alignment across multiple cells (e.g., horizontal alignment of long text in overflow mode).
The alignment mode of the document itself cannot meet this requirement,
so an additional renderConfig needs to be added during the rendering of the document component.
This means that there are two coexisting alignment modes.
In certain cases, such as in an editor, conflicts may arise,
requiring only one alignment mode to be retained.
By removing the relevant configurations in renderConfig,
the alignment mode of the sheet cell can be modified.
The alternative alignment mode is applied to paragraphs within the document.

```ts
interface IDocumentRenderConfig {
  verticalAlign?: VerticalAlign
  centerAngle?: number
  vertexAngle?: number
  horizontalAlign?: HorizontalAlign
  isRotateNonEastAsian?: BooleanNumber
  background?: IColorStyle
  wrapStrategy?: WrapStrategy
  cellValueType?: CellValueType
  isRenderStyle?: BooleanNumber
  zeroWidthParagraphBreak?: BooleanNumber
  shapeTextOpticalVerticalAlign?: BooleanNumber
  lineWrapTolerance?: number
}
```

**Related types:** [`VerticalAlign`](https://docs.univer.ai/reference/enums/vertical-align.md) · [`HorizontalAlign`](https://docs.univer.ai/reference/enums/horizontal-align.md) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md) · [`IColorStyle`](https://docs.univer.ai/reference/types/common-types.md#icolorstyle) · [`WrapStrategy`](https://docs.univer.ai/reference/enums/wrap-strategy.md) · [`CellValueType`](https://docs.univer.ai/reference/enums/cell-value-type.md)

## `IDrawingParam` [#idrawingparam]

`import type { IDrawingParam } from '@univerjs/core'` · Used by [`IDocDrawingBase`](#idocdrawingbase)

```ts
interface IDrawingParam extends IDrawingSearch {
  drawingType: DrawingType
  transform?: Nullable<ITransformState>
  transforms?: Nullable<ITransformState[]>

  isMultiTransform?: BooleanNumber
  groupId?: string
  allowTransform?: boolean

  groupBaseBound?: Nullable<IGroupBaseBound>

  hidden?: boolean
  name?: string
  description?: string

  selectable?: boolean
  locks?: IDrawingObjectLocks
}
```

**Related types:** [`IDrawingSearch`](#idrawingsearch) · [`DrawingType`](#drawingtype) · [`ITransformState`](#itransformstate) · [`Nullable`](https://docs.univer.ai/reference/types/common-types.md#nullable) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md) · [`IGroupBaseBound`](#igroupbasebound) · [`IDrawingObjectLocks`](#idrawingobjectlocks)

## `IEndnoteProperties` [#iendnoteproperties]

`import type { IEndnoteProperties } from '@univerjs/core'` · Used by [`IEndnoteSettings`](#iendnotesettings) · [`INoteProperties`](#inoteproperties)

```ts
interface IEndnoteProperties extends Omit<
  IFootnoteProperties,
  'position' | 'restart' | 'columnCount'
> {
  position?: 'docEnd' | 'sectEnd'
  restart?: 'continuous' | 'eachSect'
}
```

## `IFootnoteProperties` [#ifootnoteproperties]

`import type { IFootnoteProperties } from '@univerjs/core'` · Used by [`IFootnoteSettings`](#ifootnotesettings) · [`IEndnoteProperties`](#iendnoteproperties) · [`INoteProperties`](#inoteproperties)

Settings inherit from the document into each section; absent values do not reset inheritance.

```ts
interface IFootnoteProperties {
  position?: 'pageBottom' | 'beneathText'

  numberFormat?: string
  startNumber?: number
  restart?: 'continuous' | 'eachSect' | 'eachPage'

  columnCount?: number
}
```

## `IMargin` [#imargin]

`import type { IMargin } from '@univerjs/core'` · Used by [`IDocStyleBase`](#idocstylebase)

```ts
interface IMargin {
  marginTop?: number

  marginBottom?: number

  marginRight?: number

  marginLeft?: number
}
```

## `INestingLevel` [#inestinglevel]

`import type { INestingLevel } from '@univerjs/core'` · Used by [`IListData`](#ilistdata)

Contains properties describing the look and feel of a list bullet at a given level of nesting.

```ts
interface INestingLevel {
  paragraphProperties?: IParagraphStyle
  bulletAlignment: BulletAlignment

  glyphFormat: string

  followNumberWith?: FollowNumberWithType
  textStyle?: ITextStyle
  startNumber: number

  glyphType?: ListGlyphType
  glyphSymbol?: string

  isLegal?: boolean
}
```

**Related types:** [`IParagraphStyle`](#iparagraphstyle) · [`BulletAlignment`](#bulletalignment) · [`FollowNumberWithType`](#follownumberwithtype) · [`ITextStyle`](https://docs.univer.ai/reference/types/text-style.md) · [`ListGlyphType`](#listglyphtype)

## `INoteProperties` [#inoteproperties]

`import type { INoteProperties } from '@univerjs/core'` · Used by [`ISectionBreakBase`](#isectionbreakbase)

```ts
interface INoteProperties {
  footnote?: IFootnoteProperties
  endnote?: IEndnoteProperties
}
```

**Related types:** [`IFootnoteProperties`](#ifootnoteproperties) · [`IEndnoteProperties`](#iendnoteproperties)

## `IPageBorders` [#ipageborders]

`import type { IPageBorders } from '@univerjs/core'` · Used by [`IDocStyleBase`](#idocstylebase)

```ts
interface IPageBorders {
  offsetFrom?: 'page' | 'text'
  display?: 'allPages' | 'firstPage' | 'notFirstPage'
  zOrder?: 'front' | 'back'
  top?: IPageBorder
  left?: IPageBorder
  bottom?: IPageBorder
  right?: IPageBorder
}
```

**Related types:** [`IPageBorder`](#ipageborder)

## `IParagraphProperties` [#iparagraphproperties]

`import type { IParagraphProperties } from '@univerjs/core'` · Used by [`IParagraphStyle`](#iparagraphstyle)

```ts
interface IParagraphProperties extends IIndentStart {
  headingId?: string
  namedStyleType?: NamedStyleType

  outlineLevel?: number
  defaultTabStop?: number

  eastAsianLineBreak?: BooleanNumber

  hangingPunctuation?: BooleanNumber

  topLinePunct?: BooleanNumber
  fontAlign?: ParagraphFontAlign
  horizontalAlign?: HorizontalAlign
  lineSpacing?: number
  direction?: TextDirection
  spacingRule?: SpacingRule
  snapToGrid?: BooleanNumber
  spaceAbove?: INumberUnit
  spaceBelow?: INumberUnit

  beforeAutoSpacing?: BooleanNumber

  afterAutoSpacing?: BooleanNumber

  contextualSpacing?: BooleanNumber
  borderBetween?: IParagraphBorder
  borderTop?: IParagraphBorder
  borderBottom?: IParagraphBorder
  borderLeft?: IParagraphBorder
  borderRight?: IParagraphBorder

  keepLines?: BooleanNumber

  keepNext?: BooleanNumber

  pageBreakBefore?: BooleanNumber

  wordWrap?: BooleanNumber

  widowControl?: BooleanNumber
  shading?: IShading
  suppressHyphenation?: BooleanNumber

  paragraphFrame?:
    | BooleanNumber
    | {
        horizontalSpace?: number
        wrap?: string
        verticalAnchor?: string
        horizontalAnchor?: string
        x?: string
        y?: string
        xAlign?: string
        yAlign?: string
      }
}
```

**Related types:** [`IIndentStart`](#iindentstart) · [`NamedStyleType`](#namedstyletype) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md) · [`ParagraphFontAlign`](#paragraphfontalign) · [`HorizontalAlign`](https://docs.univer.ai/reference/enums/horizontal-align.md) · [`TextDirection`](https://docs.univer.ai/reference/types/common-types.md#textdirection) · [`SpacingRule`](#spacingrule) · [`INumberUnit`](#inumberunit) · [`IParagraphBorder`](#iparagraphborder) · [`IShading`](#ishading)

## `ISectionColumnProperties` [#isectioncolumnproperties]

`import type { ISectionColumnProperties } from '@univerjs/core'` · Used by [`ISectionBreakBase`](#isectionbreakbase)

Properties of section column

```ts
interface ISectionColumnProperties {
  width: number

  paddingEnd: number
}
```

## `ISize` [#isize]

`import type { ISize } from '@univerjs/core'` · Used by [`IDocStyleBase`](#idocstylebase) · [`IDocDrawingPosition`](#idocdrawingposition) · [`IAbsoluteTransform`](#iabsolutetransform)

```ts
interface ISize {
  width?: number
  height?: number
}
```

## `ITableAnchor` [#itableanchor]

`import type { ITableAnchor } from '@univerjs/core'` · Used by [`ITable`](#itable)

```ts
interface ITableAnchor {
  positionH: IObjectPositionH
  positionV: IObjectPositionV
}
```

**Related types:** [`IObjectPositionH`](#iobjectpositionh) · [`IObjectPositionV`](#iobjectpositionv)

## `ITableBorderDefaults` [#itableborderdefaults]

`import type { ITableBorderDefaults } from '@univerjs/core'` · Used by [`ITable`](#itable) · [`ITableRow`](#itablerow)

Properties of cell border

```ts
interface ITableBorderDefaults {
  top?: ITableCellBorder
  left?: ITableCellBorder
  bottom?: ITableCellBorder
  right?: ITableCellBorder
  insideHorizontal?: ITableCellBorder
  insideVertical?: ITableCellBorder
}
```

**Related types:** [`ITableCellBorder`](#itablecellborder)

## `ITableCellMargin` [#itablecellmargin]

`import type { ITableCellMargin } from '@univerjs/core'` · Used by [`ITable`](#itable) · [`ITableRow`](#itablerow) · [`ITableCell`](#itablecell)

```ts
interface ITableCellMargin {
  start: INumberUnit
  end: INumberUnit
  top: INumberUnit
  bottom: INumberUnit
}
```

**Related types:** [`INumberUnit`](#inumberunit)

## `ITableColumn` [#itablecolumn]

`import type { ITableColumn } from '@univerjs/core'` · Used by [`ITable`](#itable)

```ts
interface ITableColumn {
  // Merge/split columns, HTML merge cells
  size: IWidthInTableSize
}
```

**Related types:** [`IWidthInTableSize`](#iwidthintablesize)

## `ITableRow` [#itablerow]

`import type { ITableRow } from '@univerjs/core'` · Used by [`IDocStyle`](#idocstyle) · [`ITable`](#itable)

Properties of row of table

```ts
interface ITableRow {
  cellSpacing?: INumberUnit

  defaultCellSpacing?: INumberUnit

  cellMargin?: ITableCellMargin

  borderDefaults?: ITableBorderDefaults

  tableCells: ITableCell[]

  gridBefore?: number

  gridAfter?: number

  widthBefore?: IWidthInTableSize

  widthAfter?: IWidthInTableSize

  trHeight: ITableRowSize
  cantSplit?: BooleanNumber
  isFirstRow?: BooleanNumber
  repeatHeaderRow?: BooleanNumber
}
```

**Related types:** [`INumberUnit`](#inumberunit) · [`ITableCellMargin`](#itablecellmargin) · [`ITableBorderDefaults`](#itableborderdefaults) · [`ITableCell`](#itablecell) · [`IWidthInTableSize`](#iwidthintablesize) · [`ITableRowSize`](#itablerowsize) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md)

## `IWidthInTableSize` [#iwidthintablesize]

`import type { IWidthInTableSize } from '@univerjs/core'` · Used by [`ITable`](#itable) · [`ITableRow`](#itablerow) · [`ITableColumn`](#itablecolumn) · [`ITableCell`](#itablecell)

```ts
interface IWidthInTableSize {
  type: TableSizeType
  width: INumberUnit
}
```

**Related types:** [`TableSizeType`](#tablesizetype) · [`INumberUnit`](#inumberunit)

## `NumberUnitType` [#numberunittype]

`import { NumberUnitType } from '@univerjs/core'` · Used by [`INumberUnit`](#inumberunit)

```ts
enum NumberUnitType {
  POINT = 0,
  LINE = 1,
  CHARACTER = 2,
  PIXEL = 3,
  PERCENT = 4,
}
```

## `PageOrientType` [#pageorienttype]

`import { PageOrientType } from '@univerjs/core'` · Used by [`IDocStyleBase`](#idocstylebase)

Paper orientation, whether it's portrait (vertical) or landscape (horizontal)

```ts
enum PageOrientType {
  PORTRAIT = 0,
  LANDSCAPE = 1,
}
```

## `PositionedObjectLayoutType` [#positionedobjectlayouttype]

`import { PositionedObjectLayoutType } from '@univerjs/core'` · Used by [`IDocDrawingBase`](#idocdrawingbase)

Controls how a positioned object participates in document text layout.

`WRAP_NONE` does not by itself determine whether the object is in front of or behind text. Drawing data uses
`behindDoc` for that stacking choice.

```ts
enum PositionedObjectLayoutType {
  INLINE = 0,
  WRAP_NONE = 1,
  WRAP_POLYGON = 2,
  WRAP_SQUARE = 3,
  WRAP_THROUGH = 4,
  WRAP_TIGHT = 5,
  WRAP_TOP_AND_BOTTOM = 6,
}
```

## `SectionType` [#sectiontype]

`import { SectionType } from '@univerjs/core'` · Used by [`ISectionBreakBase`](#isectionbreakbase)

Represents how the start of the current section is positioned relative to the previous section.

```ts
enum SectionType {
  SECTION_TYPE_UNSPECIFIED = 0, // The section type is unspecified.
  CONTINUOUS = 1, // The section starts immediately after the last paragraph of the previous section.
  NEXT_COLUMN = 2, // The section starts in the next column, or on the next page when no column remains.
  NEXT_PAGE = 3, // The section starts on the next page.
  EVEN_PAGE = 4, // The section starts on the next even-numbered page.
  ODD_PAGE = 5, // The section starts on the next odd-numbered page.
}
```

## `TableAlignmentType` [#tablealignmenttype]

`import { TableAlignmentType } from '@univerjs/core'` · Used by [`ITable`](#itable)

```ts
enum TableAlignmentType {
  START = 0,
  CENTER = 1,
  END = 2,
}
```

## `TableLayoutType` [#tablelayouttype]

`import { TableLayoutType } from '@univerjs/core'` · Used by [`ITable`](#itable)

```ts
enum TableLayoutType {
  AUTO_FIT = 0,
  FIXED = 1,
}
```

## `TableTextWrapType` [#tabletextwraptype]

`import { TableTextWrapType } from '@univerjs/core'` · Used by [`ITable`](#itable)

```ts
enum TableTextWrapType {
  NONE = 0,
  WRAP = 1,
}
```

## `TextDirectionType` [#textdirectiontype]

`import { TextDirectionType } from '@univerjs/core'` · Used by [`ISectionBreakBase`](#isectionbreakbase)

Direction of text

```ts
enum TextDirectionType {
  NORMAL = 0, // Horizontal
  TBRL = 1, // Vertical
  LRTBV = 2, // Rotate Asian characters 270°
}
```

## `WrapTextType` [#wraptexttype]

`import { WrapTextType } from '@univerjs/core'` · Used by [`IDocDrawingBase`](#idocdrawingbase)

Types of wrap text

```ts
enum WrapTextType {
  BOTH_SIDES = 0,
  LEFT = 1,
  RIGHT = 2,
  LARGEST = 3,
}
```

## `BulletAlignment` [#bulletalignment]

`import { BulletAlignment } from '@univerjs/core'` · Used by [`INestingLevel`](#inestinglevel)

The types of alignment for a bullet.

```ts
enum BulletAlignment {
  BULLET_ALIGNMENT_UNSPECIFIED = 0, // The bullet alignment is unspecified.
  START = 1, // bullet is aligned to the start of the space allotted for rendering the bullet. Left-aligned for LTR text, right-aligned otherwise.
  CENTER = 2, // The bullet is aligned to the center of the space allotted for rendering the bullet.
  END = 3, // The bullet is aligned to the end of the space allotted for rendering the bullet. Right-aligned for LTR text, left-aligned otherwise.
  BOTH = 4, // The bullet is aligned such that it is equidistant from both the start and end of the space allotted for rendering the bullet.
}
```

## `DrawingType` [#drawingtype]

`import type { DrawingType } from '@univerjs/core'` · Used by [`IDrawingParam`](#idrawingparam)

```ts
type DrawingType = DrawingTypeEnum | number
```

**Related types:** [`DrawingTypeEnum`](#drawingtypeenum)

## `FollowNumberWithType` [#follownumberwithtype]

`import { FollowNumberWithType } from '@univerjs/core'` · Used by [`INestingLevel`](#inestinglevel)

Follow the space after the list

```ts
enum FollowNumberWithType {
  TAB = 0,
  SPACE = 1,
  NOTHING = 2,
}
```

## `IDrawingObjectLocks` [#idrawingobjectlocks]

`import type { IDrawingObjectLocks } from '@univerjs/core'` · Used by [`IDrawingParam`](#idrawingparam)

```ts
interface IDrawingObjectLocks {
  noSelect?: boolean
  noMove?: boolean
  noResize?: boolean
  noRotate?: boolean
  noTextEdit?: boolean
  noEditPoints?: boolean
  noChangeAspect?: boolean
}
```

## `IDrawingSearch` [#idrawingsearch]

`import type { IDrawingSearch } from '@univerjs/core'` · Used by [`IDrawingParam`](#idrawingparam)

```ts
interface IDrawingSearch extends IDrawingSpace {
  drawingId: string
}
```

**Related types:** [`IDrawingSpace`](#idrawingspace)

## `IGroupBaseBound` [#igroupbasebound]

`import type { IGroupBaseBound } from '@univerjs/core'` · Used by [`IDrawingParam`](#idrawingparam)

```ts
interface IGroupBaseBound {
  left: number
  top: number
  width: number
  height: number
}
```

## `IIndentStart` [#iindentstart]

`import type { IIndentStart } from '@univerjs/core'` · Used by [`IParagraphProperties`](#iparagraphproperties)

```ts
interface IIndentStart {
  indentFirstLine?: INumberUnit
  hanging?: INumberUnit
  indentStart?: INumberUnit
  tabStops?: ITabStop[]
  indentEnd?: INumberUnit
}
```

**Related types:** [`INumberUnit`](#inumberunit) · [`ITabStop`](#itabstop)

## `IObjectPositionH` [#iobjectpositionh]

`import type { IObjectPositionH } from '@univerjs/core'` · Used by [`ITableAnchor`](#itableanchor) · [`IDocDrawingPosition`](#idocdrawingposition)

```ts
interface IObjectPositionH {
  relativeFrom: ObjectRelativeFromH

  align?: AlignTypeH
  posOffset?: number
  percent?: number
}
```

**Related types:** [`ObjectRelativeFromH`](#objectrelativefromh) · [`AlignTypeH`](#aligntypeh)

## `IObjectPositionV` [#iobjectpositionv]

`import type { IObjectPositionV } from '@univerjs/core'` · Used by [`ITableAnchor`](#itableanchor) · [`IDocDrawingPosition`](#idocdrawingposition)

```ts
interface IObjectPositionV {
  relativeFrom: ObjectRelativeFromV

  align?: AlignTypeV
  posOffset?: number
  percent?: number
}
```

**Related types:** [`ObjectRelativeFromV`](#objectrelativefromv) · [`AlignTypeV`](#aligntypev)

## `IPageBorder` [#ipageborder]

`import type { IPageBorder } from '@univerjs/core'` · Used by [`IPageBorders`](#ipageborders)

Page border geometry is expressed in 96-DPI layout pixels.

```ts
interface IPageBorder {
  style?: string
  width?: number
  padding?: number
  color?: IColorStyle
}
```

**Related types:** [`IColorStyle`](https://docs.univer.ai/reference/types/common-types.md#icolorstyle)

## `IParagraphBorder` [#iparagraphborder]

`import type { IParagraphBorder } from '@univerjs/core'` · Used by [`IParagraphProperties`](#iparagraphproperties)

Properties of paragraph border

```ts
interface IParagraphBorder extends IDocsBorder {
  padding: number

  style?: string
}
```

**Related types:** [`IDocsBorder`](#idocsborder)

## `IShading` [#ishading]

`import type { IShading } from '@univerjs/core'` · Used by [`IParagraphProperties`](#iparagraphproperties)

Properties of shading

```ts
interface IShading {
  backgroundColor: IColorStyle
}
```

**Related types:** [`IColorStyle`](https://docs.univer.ai/reference/types/common-types.md#icolorstyle)

## `ITableCell` [#itablecell]

`import type { ITableCell } from '@univerjs/core'` · Used by [`ITableRow`](#itablerow)

Properties of table cell

```ts
interface ITableCell {
  margin?: ITableCellMargin
  rowSpan?: number
  columnSpan?: number
  backgroundColor?: IColorStyle
  borderLeft?: ITableCellBorder
  borderRight?: ITableCellBorder
  borderTop?: ITableCellBorder
  borderBottom?: ITableCellBorder
  size?: IWidthInTableSize

  tcWidthType?: 'auto' | 'dxa' | 'nil' | 'pct'
  tcFitText?: BooleanNumber

  tcHideMark?: BooleanNumber

  textDirection?: 'lrTb' | 'tbRl' | 'btLr' | 'lrTbV' | 'tbRlV' | 'tbLrV'

  vAlign?: VerticalAlignmentType
}
```

**Related types:** [`ITableCellMargin`](#itablecellmargin) · [`IColorStyle`](https://docs.univer.ai/reference/types/common-types.md#icolorstyle) · [`ITableCellBorder`](#itablecellborder) · [`IWidthInTableSize`](#iwidthintablesize) · [`BooleanNumber`](https://docs.univer.ai/reference/enums/boolean-number.md) · [`VerticalAlignmentType`](#verticalalignmenttype)

## `ITableCellBorder` [#itablecellborder]

`import type { ITableCellBorder } from '@univerjs/core'` · Used by [`ITableBorderDefaults`](#itableborderdefaults) · [`ITableCell`](#itablecell)

```ts
interface ITableCellBorder {
  color: IColorStyle
  width?: INumberUnit
  dashStyle?: DashStyleType

  tableTopBorder?: ITableCellBorder

  tableBottomBorder?: ITableCellBorder
}
```

**Related types:** [`IColorStyle`](https://docs.univer.ai/reference/types/common-types.md#icolorstyle) · [`INumberUnit`](#inumberunit) · [`DashStyleType`](#dashstyletype)

## `ITableRowSize` [#itablerowsize]

`import type { ITableRowSize } from '@univerjs/core'` · Used by [`ITableRow`](#itablerow)

```ts
interface ITableRowSize {
  val: INumberUnit
  hRule: TableRowHeightRule
}
```

**Related types:** [`INumberUnit`](#inumberunit) · [`TableRowHeightRule`](#tablerowheightrule)

## `ITransformState` [#itransformstate]

`import type { ITransformState } from '@univerjs/core'` · Used by [`IDrawingParam`](#idrawingparam)

```ts
interface ITransformState
  extends IAbsoluteTransform, IRotationSkewFlipTransform, ITransformStateDisableOption {}
```

**Related types:** [`IAbsoluteTransform`](#iabsolutetransform) · [`IRotationSkewFlipTransform`](#irotationskewfliptransform) · [`ITransformStateDisableOption`](#itransformstatedisableoption)

## `ListGlyphType` [#listglyphtype]

`import { ListGlyphType } from '@univerjs/core'` · Used by [`INestingLevel`](#inestinglevel)

An enumeration of the supported glyph types.

```ts
enum ListGlyphType {
  BULLET = 0, // The glyph type is unspecified or unsupported.
  NONE = 1, // An empty string.
  DECIMAL = 2, // A number, like 1, 2, or 3.
  DECIMAL_ZERO = 3, // A number where single digit numbers are prefixed with a zero, like 01, 02, or 03. Numbers with more than one digit are not prefixed with a zero.
  UPPER_LETTER = 4, // An uppercase letter, like A, B, or C.
  LOWER_LETTER = 5, // A lowercase letter, like a, b, or c.
  UPPER_ROMAN = 6, // An uppercase Roman numeral, like I, II, or III.
  LOWER_ROMAN = 7, // A lowercase Roman numeral, like i, ii, or iii.
  ORDINAL = 8,
  CARDINAL_TEXT = 9,
  ORDINAL_TEXT = 10,
  HEX = 11,
  CHICAGO = 12,
  IDEOGRAPH_DIGITAL = 13,
  JAPANESE_COUNTING = 14,
  AIUEO = 15,
  IROHA = 16,
  DECIMAL_FULL_WIDTH = 17,
  DECIMAL_HALF_WIDTH = 18,
  JAPANESE_LEGAL = 19,
  JAPANESE_DIGITAL_TEN_THOUSAND = 20,
  DECIMAL_ENCLOSED_CIRCLE = 21,
  DECIMAL_FULL_WIDTH2 = 22,
  AIUEO_FULL_WIDTH = 23,
  IROHA_FULL_WIDTH = 24,
  GANADA = 25,
  CHOSUNG = 26,
  DECIMAL_ENCLOSED_FULLSTOP = 27,
  DECIMAL_ENCLOSED_PAREN = 28,
  DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29,
  IDEOGRAPH_ENCLOSED_CIRCLE = 30,
  IDEOGRAPH_TRADITIONAL = 31,
  IDEOGRAPH_ZODIAC = 32,
  IDEOGRAPH_ZODIAC_TRADITIONAL = 33,
  TAIWANESE_COUNTING = 34,
  IDEOGRAPH_LEGAL_TRADITIONAL = 35,
  TAIWANESE_COUNTING_THOUSAND = 36,
  TAIWANESE_DIGITAL = 37,
  CHINESE_COUNTING = 38,
  CHINESE_LEGAL_SIMPLIFIED = 39,
  CHINESE_COUNTING_THOUSAND = 40,
  KOREAN_DIGITAL = 41,
  KOREAN_COUNTING = 42,
  KOREAN_LEGAL = 43,
  KOREAN_DIGITAL2 = 44,
  VIETNAMESE_COUNTING = 45,
  RUSSIAN_LOWER = 46,
  RUSSIAN_UPPER = 47,
  NUMBER_IN_DASH = 48,
  HEBREW1 = 49,
  HEBREW2 = 50,
  ARABIC_ALPHA = 51,
  ARABIC_ABJAD = 52,
  HINDI_VOWELS = 53,
  HINDI_CONSONANTS = 54,
  HINDI_NUMBERS = 55,
  HINDI_COUNTING = 56,
  THAI_LETTERS = 57,
  THAI_NUMBERS = 58,
  THAI_COUNTING = 59,
  CUSTOM = 60,
}
```

## `NamedStyleType` [#namedstyletype]

`import { NamedStyleType } from '@univerjs/core'` · Used by [`IParagraphProperties`](#iparagraphproperties)

Types of name style

```ts
enum NamedStyleType {
  NAMED_STYLE_TYPE_UNSPECIFIED = 0, // The type of named style is unspecified.
  NORMAL_TEXT = 1, // Normal text.
  TITLE = 2, // Title.
  SUBTITLE = 3, // Subtitle.
  HEADING_1 = 4, // Heading 1.
  HEADING_2 = 5, // Heading 2.
  HEADING_3 = 6, // Heading 3.
  HEADING_4 = 7, // Heading 4.
  HEADING_5 = 8, // Heading 5.
}
```

## `ParagraphFontAlign` [#paragraphfontalign]

`import type { ParagraphFontAlign } from '@univerjs/core'` · Used by [`IParagraphProperties`](#iparagraphproperties)

Vertical alignment of text runs inside a paragraph line box.
This is the normalized form of DrawingML `fontAlgn`.

```ts
type ParagraphFontAlign = 'auto' | 'top' | 'center' | 'baseline' | 'bottom'
```

## `SpacingRule` [#spacingrule]

`import { SpacingRule } from '@univerjs/core'` · Used by [`IParagraphProperties`](#iparagraphproperties)

```ts
enum SpacingRule {
  AUTO = 0,
  AT_LEAST = 1,
  EXACT = 2,
}
```

## `TableSizeType` [#tablesizetype]

`import { TableSizeType } from '@univerjs/core'` · Used by [`IWidthInTableSize`](#iwidthintablesize)

```ts
enum TableSizeType {
  UNSPECIFIED = 0,
  SPECIFIED = 1,
}
```

## `AlignTypeH` [#aligntypeh]

`import { AlignTypeH } from '@univerjs/core'` · Used by [`IObjectPositionH`](#iobjectpositionh)

```ts
enum AlignTypeH {
  CENTER = 0,
  INSIDE = 1,
  LEFT = 2,
  OUTSIDE = 3,
  RIGHT = 4,
  BOTH = 5,
  DISTRIBUTE = 6,
}
```

## `AlignTypeV` [#aligntypev]

`import { AlignTypeV } from '@univerjs/core'` · Used by [`IObjectPositionV`](#iobjectpositionv)

```ts
enum AlignTypeV {
  BOTTOM = 0,
  CENTER = 1,
  INSIDE = 2,
  OUTSIDE = 3,
  TOP = 4,
}
```

## `DashStyleType` [#dashstyletype]

`import { DashStyleType } from '@univerjs/core'` · Used by [`ITableCellBorder`](#itablecellborder) · [`IDocsBorder`](#idocsborder)

The kinds of dashes with which linear geometry can be rendered.

```ts
enum DashStyleType {
  DASH_STYLE_UNSPECIFIED = 0, // Unspecified dash style.
  SOLID = 1, // Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'. This is the default dash style.
  DOT = 2, // Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'.
  DASH = 3, // Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dash'.
}
```

## `DrawingTypeEnum` [#drawingtypeenum]

`import { DrawingTypeEnum } from '@univerjs/core'` · Used by [`DrawingType`](#drawingtype)

Types of drawings, used to distinguish between images, shapes, charts, tables, SmartArt, videos, DrawingGroup, Unit, Dom, etc.

```ts
enum DrawingTypeEnum {
  UNRECOGNIZED = -1,
  DRAWING_IMAGE = 0,
  DRAWING_SHAPE = 1,
  DRAWING_CHART = 2,
  DRAWING_TABLE = 3,
  DRAWING_SMART_ART = 4,
  DRAWING_VIDEO = 5,
  DRAWING_GROUP = 6,
  DRAWING_UNIT = 7,
  DRAWING_DOM = 8,
  DRAWING_BLOCK = 9,
  DRAWING_SLICER = 10,
  DRAWING_TIMELINE = 11,
  DRAWING_OLE = 12,
}
```

## `IAbsoluteTransform` [#iabsolutetransform]

`import type { IAbsoluteTransform } from '@univerjs/core'` · Used by [`ITransformState`](#itransformstate)

```ts
interface IAbsoluteTransform extends ISize, IOffset, IScale {}
```

**Related types:** [`ISize`](#isize) · [`IOffset`](#ioffset) · [`IScale`](#iscale)

## `IDocsBorder` [#idocsborder]

`import type { IDocsBorder } from '@univerjs/core'` · Used by [`IParagraphBorder`](#iparagraphborder)

Properties of doc border

```ts
interface IDocsBorder {
  color: IColorStyle
  width: number
  dashStyle: DashStyleType
}
```

**Related types:** [`IColorStyle`](https://docs.univer.ai/reference/types/common-types.md#icolorstyle) · [`DashStyleType`](#dashstyletype)

## `IDrawingSpace` [#idrawingspace]

`import type { IDrawingSpace } from '@univerjs/core'` · Used by [`IDrawingSearch`](#idrawingsearch)

```ts
interface IDrawingSpace {
  unitId: string
  subUnitId: string
}
```

## `IRotationSkewFlipTransform` [#irotationskewfliptransform]

`import type { IRotationSkewFlipTransform } from '@univerjs/core'` · Used by [`ITransformState`](#itransformstate)

```ts
interface IRotationSkewFlipTransform {
  angle?: number
  skewX?: number
  skewY?: number
  flipX?: boolean
  flipY?: boolean
}
```

## `ITabStop` [#itabstop]

`import type { ITabStop } from '@univerjs/core'` · Used by [`IIndentStart`](#iindentstart)

A tab stop within a paragraph.

```ts
interface ITabStop {
  offset: number
  alignment: TabStopAlignment
  leader?: TabStopLeader
  clear?: boolean
}
```

**Related types:** [`TabStopAlignment`](#tabstopalignment) · [`TabStopLeader`](#tabstopleader)

## `ITransformStateDisableOption` [#itransformstatedisableoption]

`import type { ITransformStateDisableOption } from '@univerjs/core'` · Used by [`ITransformState`](#itransformstate)

```ts
interface ITransformStateDisableOption {
  rotateEnabled?: boolean
  resizeEnabled?: boolean
  borderEnabled?: boolean
}
```

## `ObjectRelativeFromH` [#objectrelativefromh]

`import { ObjectRelativeFromH } from '@univerjs/core'` · Used by [`IObjectPositionH`](#iobjectpositionh)

```ts
enum ObjectRelativeFromH {
  PAGE = 0,
  COLUMN = 1,
  CHARACTER = 2,
  MARGIN = 3,
  INSIDE_MARGIN = 4,
  OUTSIDE_MARGIN = 5,
  LEFT_MARGIN = 6,
  RIGHT_MARGIN = 7,
}
```

## `ObjectRelativeFromV` [#objectrelativefromv]

`import { ObjectRelativeFromV } from '@univerjs/core'` · Used by [`IObjectPositionV`](#iobjectpositionv)

```ts
enum ObjectRelativeFromV {
  PAGE = 0,
  PARAGRAPH = 1,
  LINE = 2,
  MARGIN = 3,
  TOP_MARGIN = 4,
  BOTTOM_MARGIN = 5,
  INSIDE_MARGIN = 6,
  OUTSIDE_MARGIN = 7,
}
```

## `TableRowHeightRule` [#tablerowheightrule]

`import { TableRowHeightRule } from '@univerjs/core'` · Used by [`ITableRowSize`](#itablerowsize)

```ts
enum TableRowHeightRule {
  AUTO = 0,
  AT_LEAST = 1,
  EXACT = 2,
}
```

## `VerticalAlignmentType` [#verticalalignmenttype]

`import { VerticalAlignmentType } from '@univerjs/core'` · Used by [`ITableCell`](#itablecell)

The content alignments for a Shape or TableCell. The supported alignments correspond to predefined text anchoring types from the ECMA-376 standard.

```ts
enum VerticalAlignmentType {
  CONTENT_ALIGNMENT_UNSPECIFIED = 0, // An unspecified content alignment. The content alignment is inherited from the parent if one exists.
  BOTH = 1,
  TOP = 2, // An alignment that aligns the content to the top of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'.
  CENTER = 3, // An alignment that aligns the content to the middle of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
  BOTTOM = 4, // An alignment that aligns the content to the bottom of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'.
}
```

## `IOffset` [#ioffset]

`import type { IOffset } from '@univerjs/core'` · Used by [`IAbsoluteTransform`](#iabsolutetransform)

```ts
interface IOffset {
  left?: number
  top?: number
}
```

## `IScale` [#iscale]

`import type { IScale } from '@univerjs/core'` · Used by [`IAbsoluteTransform`](#iabsolutetransform)

```ts
interface IScale {
  scaleX?: number
  scaleY?: number
}
```
