ContentAlign Enum
The ContentAlign enum defines alignment options for positioning and aligning content in various UI elements. It allows combinations of horizontal and vertical alignments.
Enum Values
Horizontal Alignment
| Name | Value | Description |
|---|---|---|
Left | 1 | Aligns the content to the left. |
CenterX | 2 | Centers the content horizontally. |
Right | 4 | Aligns the content to the right. |
Vertical Alignment
| Name | Value | Description |
|---|---|---|
Bottom | 8 | Aligns the content to the bottom. |
CenterY | 16 | Centers the content vertically. |
Top | 32 | Aligns the content to the top. |
Combined Alignments
| Name | Value | Description |
|---|---|---|
LeftBottom | 9 | Aligns content to the bottom-left corner. |
CenterXBottom | 10 | Aligns content to the bottom-center horizontally. |
RightBottom | 12 | Aligns content to the bottom-right corner. |
LeftCenterY | 17 | Aligns content to the left-center vertically. |
CenterXY | 18 | Aligns content to the center of the area (both horizontally and vertically). |
RightCenterY | 20 | Aligns content to the right-center vertically. |
LeftTop | 33 | Aligns content to the top-left corner. |
CenterXTop | 34 | Aligns content to the top-center horizontally. |
RightTop | 36 | Aligns content to the top-right corner. |