# HorizontalAlign

> Language fallback: requested `zh-CN`; content is `en-US`.

- Human documentation: [https://docs.univer.ai/zh-CN/reference/enums/horizontal-align](https://docs.univer.ai/zh-CN/reference/enums/horizontal-align)

- Agent Markdown: [https://docs.univer.ai/zh-CN/reference/enums/horizontal-align.md](https://docs.univer.ai/zh-CN/reference/enums/horizontal-align.md)

- Requested language: `zh-CN`

- Content language: `en-US`

- Documentation version: `1.0.0-rc.0`

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

---

Horizontal alignment for cell and text styles. Use these values with `IStyleData.ht`.

## Import

```ts
import { HorizontalAlign } from '@univerjs/core'
```

## Definition

```ts
enum HorizontalAlign {
  UNSPECIFIED = 0, // The horizontal alignment is not specified. Do not use this.
  LEFT = 1, // The text is explicitly aligned to the left of the cell.
  CENTER = 2, // text is explicitly aligned to the center of the cell.
  RIGHT = 3, // The text is explicitly aligned to the right of the cell.
  JUSTIFIED = 4, // The paragraph is justified.
  BOTH = 5, // The paragraph is justified.
  DISTRIBUTED = 6,
}
```

**Package:** [`@univerjs/core`](https://docs.univer.ai/zh-CN/reference/packages/plugins/univerjs/core.md) · [Type definitions](https://unpkg.com/@univerjs/core@1.0.0-rc.0/lib/types/types/enum/text-style.d.ts)
