.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

SpreadsheetHorizontalAlignment Enum

Lists the values used to specify horizontal alignment of data within a cell.

Namespace: DevExpress.Spreadsheet

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

Declaration

public enum SpreadsheetHorizontalAlignment
Public Enum SpreadsheetHorizontalAlignment
public enum SpreadsheetHorizontalAlignment
Public Enum SpreadsheetHorizontalAlignment
public enum SpreadsheetHorizontalAlignment
Public Enum SpreadsheetHorizontalAlignment

Members

Name Description
Center

The cell content is centered horizontally.

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.

Fill

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

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

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.

Left

The cell content is horizontally aligned on the left.

Right

The cell content is horizontally aligned on the right.

Remarks

The SpreadsheetHorizontalAlignment enumerator members are used to set the Alignment.Horizontal property.

For details on how to align data within cells, see the How to: Align Cell Content topic.

See Also