Skip to content

Enum ExcelHorizontalAlignment

Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll

Horizontal text alignment

public enum ExcelHorizontalAlignment

Fields

General = 0

General aligned

Left = 1

Left aligned

Center = 2

Center aligned

CenterContinuous = 3

The horizontal alignment is centered across multiple cells

Right = 4

Right aligned

Fill = 5

The value of the cell should be filled across the entire width of the cell.

Distributed = 6

Each word in each line of text inside the cell is evenly distributed across the width of the cell

Justify = 7

The horizontal alignment is justified to the Left and Right for each row.