'DeclarationPublic Enum HorizontalAlignment Inherits System.Enum
'UsageDim instance As HorizontalAlignment
public enum HorizontalAlignment : System.Enum
'DeclarationPublic Enum HorizontalAlignment Inherits System.Enum
'UsageDim instance As HorizontalAlignment
public enum HorizontalAlignment : System.Enum
| Member | Value | Description |
|---|---|---|
| Center | 2 | The content will be centered in the middle of the Cell. |
| CenterAcrossSelection | 5 | The content will be centered within the selection (which is a Cell, by default). |
| Distributed | 7 | The text will be centered, but will also be aligned with the left and right side of the Cell when possible. |
| Fill | 4 | The content will be duplicated to fill the Cell’s width. |
| General | 0 | The default alignment. Texts will be aligned to the left, Numbers, Dates & Times will be aligned to the right and Boolean values will be centered in the middle of the Cell. |
| Justify | 6 | The text will be aligned with the left and right sides of the Cell simultaneously, except for the last line, which will be aligned to the left side only. |
| Left | 1 | The content will be aligned to the left side of the Cell. |
| Right | 3 | The content will be aligned to the right side of the Cell. |
System.Object
System.ValueType
System.Enum
Xceed.Workbooks.NET.HorizontalAlignment
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.