Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetHorizontalAlignment Enum

Specifies horizontal alignment of cell content.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.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.

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.

#Related API Members

The following properties accept/return SpreadsheetHorizontalAlignment values:

See Also