Lists values used to specify the horizontal alignment of the cell content.
The cell content is horizontally aligned according to the data type (text is aligned to the left; numbers, date and time values are aligned to the right; boolean and error values are centered).
The cell content is horizontally aligned to the left edge of the cell.
The cell content is centered horizontally across the cell.
The cell content is horizontally aligned to the right edge of the cell.
Repeats the cell content across the entire width of the cell.
The text is wrapped to fully fit into the cell width and each line of text (except the last line) is horizontally justified to the right and left of the cell.
The cell content is centered horizontally across multiple cells.
The text is wrapped to fit into the cell width and each line of text is horizontally distributed across the full width of the cell. This alignment type allows applying an indent to both the left and right sides of the cell.
Related API Members
The following properties accept/return XlHorizontalAlignment values:
The values listed by this enumeration are used by the XlCellAlignment.HorizontalAlignment property.
For details on how to align data in a cell, see the How to: Align Cell Content topic.