Defines constants that specify the horizontal alignment of content within a container, such as a cell in a spreadsheet or a text block in a document. Allows developers to precisely control how content is positioned horizontally, enhancing the layout and readability of the content.
public enum HorizontalAlignment
Value | Name | Description |
---|---|---|
0 | General |
The default horizontal alignment. |
1 | Left |
Aligns content to the left side of the container. |
2 | Center |
Aligns contents to the horizontal center within the container. |
3 | Right |
Aligns content to the right side of the container. |