API 参考

HorizontalAlign

本 API 页面目前提供英文正文。代码签名与标识符不随界面语言变化。

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

Import

TypeScript
import { HorizontalAlign } from '@univerjs/core'

Definition

TypeScript
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 · Type definitions

你觉得这篇文档如何?

© 2026 DreamNum Co., Ltd.