Skip to content

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 ​

NameValueDescription
Left1Aligns the content to the left.
CenterX2Centers the content horizontally.
Right4Aligns the content to the right.

Vertical Alignment ​

NameValueDescription
Bottom8Aligns the content to the bottom.
CenterY16Centers the content vertically.
Top32Aligns the content to the top.

Combined Alignments ​

NameValueDescription
LeftBottom9Aligns content to the bottom-left corner.
CenterXBottom10Aligns content to the bottom-center horizontally.
RightBottom12Aligns content to the bottom-right corner.
LeftCenterY17Aligns content to the left-center vertically.
CenterXY18Aligns content to the center of the area (both horizontally and vertically).
RightCenterY20Aligns content to the right-center vertically.
LeftTop33Aligns content to the top-left corner.
CenterXTop34Aligns content to the top-center horizontally.
RightTop36Aligns content to the top-right corner.