Skip to main content
Row

SpreadsheetHorizontalAlignment Enum

Specifies horizontal alignment of cell content.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v23.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public enum SpreadsheetHorizontalAlignment

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 on the left.

Center

The cell content is centered horizontally.

Right

The cell content is horizontally aligned on the right.

Fill

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

Justify

The text is wrapped to fit the cell width and each line of text (except the last line) is horizontally justified to the right and left of the cell.

The Spreadsheet controls and Spreadsheet Document API do not support the Justify option. However, you can set this alignment type in code, save your workbook, and display or print it in Microsoft® Excel®.

CenterContinuous

The cell content is centered horizontally across multiple cells.

Distributed

The text is wrapped to fit the cell width and each line of text is horizontally distributed across the entire cell. This alignment type allows you to apply an indent to both the left and right sides of the cell.

The Spreadsheet controls and Spreadsheet Document API do not support the Distributed option. However, you can set this alignment type in code, save your workbook, and display or print it in Microsoft® Excel®.

Related API Members

The following properties accept/return SpreadsheetHorizontalAlignment values:

See Also