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.