AlignmentFormat||doc136583

September 20, 2022

Format

Window.AlignmentFormat

Describe

This attribute determines the starting position of the window in the horizontal / vertical direction and also changes the origin of the window. The origin determines where the window is placed and where it is expanded when the size changes. To understand how the alignmentformat works, try creating aImage, and setPositionbyUDim2.new(0.5, 0, 0.5, 0)。 If you changeSize, you will find that the image will expand to the lower right corner instead of the center of the window. However, if you set the alignmentformat toCenter, the image will expand in all directions, and the center of the image is just the center of the parent window.