HorizontalAlignment

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

ValueDescription
GENERALRepresents the default alignment determined by the cell’s content type
LEFTRepresents left‑justified horizontal alignment of cell contents
CENTERRepresents centered horizontal alignment of cell contents
RIGHT
FILLRepresents stretched fill alignment, repeating content to fill the cell width
JUSTIFYRepresents justified alignment, spacing text evenly across the cell width
CENTER_CONTINUOUSRepresents continuous centering across merged cells
DISTRIBUTEDRepresents distributed alignment, spacing content evenly with equal gaps

See Also