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.

Description

HorizontalAlignment is an enumeration type in the Aspose.Cells FOSS library for Java. It defines a set of named constants that control behavior or specify options within the API. Enumerations like HorizontalAlignment help ensure type safety by restricting values to a predefined set.

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

 English