Back to Devexpress

SpreadsheetHorizontalAlignment Enum

officefileapi-devexpress-dot-spreadsheet-ed15c3f4.md

latest2.1 KB
Original Source

SpreadsheetHorizontalAlignment Enum

Specifies horizontal alignment of cell content.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public enum SpreadsheetHorizontalAlignment
vb
Public Enum SpreadsheetHorizontalAlignment

Members

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

|

The following properties accept/return SpreadsheetHorizontalAlignment values:

See Also

How to: Align Cell Content in Spreadsheet Documents

DevExpress.Spreadsheet Namespace