Horizontal alignment styles used for CellStyle.HorizontalAlignment.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 35.0.30.1025

Syntax

C#
public enum HorizontalAlignmentStyle
Visual Basic
Public Enumeration HorizontalAlignmentStyle

Members

Member nameValueDescription
General0 Aligns data depending on the data type (text, number, etc.). Consult Microsoft Excel documentation.
Left1 Left alignment.
Center2 Center alignment.
Right3 Right alignment.
Fill4 Fill alignment repeats cell data to fill the whole cell.
Justify5 Justify alignment.
CenterAcross6 Centered across selection. Multiple cells can be selected but only one should have value for this alignment to have effect.
Distributed7 Distributed alignment.

See Also