Skip to main content
A newer version of this page is available. .

XlHorizontalAlignment Enum

Lists values used to specify the horizontal alignment of the cell content.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v18.2.Core.dll

Declaration

public enum XlHorizontalAlignment

Members

Name Description
General

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).

Left

The cell content is horizontally aligned to the left edge of the cell.

Center

The cell content is centered horizontally across the cell.

Right

The cell content is horizontally aligned to the right edge of the cell.

Fill

Repeats the cell content across the entire width of the cell.

Justify

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.

CenterContinuous

The cell content is centered horizontally across multiple cells.

Distributed

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:

Remarks

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.

See Also