HorizontalAlignment
Overview
HorizontalAlignment is a enum in Aspose.Cells FOSS for Java.
Represents horizontal alignment options for cell content in Excel.
This enumeration defines 8 values: GENERAL, LEFT, CENTER, RIGHT, FILL, JUSTIFY, CENTER_CONTINUOUS, DISTRIBUTED.
Values
| Value | Description |
|---|---|
GENERAL | Represents the default alignment determined by the cell’s content type |
LEFT | Represents left‑justified horizontal alignment of cell contents |
CENTER | Represents centered horizontal alignment of cell contents |
RIGHT | |
FILL | Represents stretched fill alignment, repeating content to fill the cell width |
JUSTIFY | Represents justified alignment, spacing text evenly across the cell width |
CENTER_CONTINUOUS | Represents continuous centering across merged cells |
DISTRIBUTED | Represents distributed alignment, spacing content evenly with equal gaps |