Skip to main content

Enum GridLayout.Alignment

Defines the alignment options for controls within grid cells.

Assembly: MicroLayout.dll​
View Source​
Declaration
public enum GridLayout.Alignment

Fields​

Left​

Aligns the control to the left edge of its allocated grid cell space, maintaining its height and centering it vertically.

View Source​
Declaration
Left = 0

Top​

Aligns the control to the top edge of its allocated grid cell space, maintaining its width and centering it horizontally.

View Source​
Declaration
Top = 1

Aligns the control to the right edge of its allocated grid cell space, maintaining its height and centering it vertically.

View Source​
Declaration
Right = 2

Bottom​

Aligns the control to the bottom edge of its allocated grid cell space, maintaining its width and centering it horizontally.

View Source​
Declaration
Bottom = 3

Center​

Centers the control within its allocated grid cell space horizontally and vertically, maintaining its original size.

View Source​
Declaration
Center = 4

Stretch​

Stretches the control to fill its entire allocated grid cell space, overriding its original size.

View Source​
Declaration
Stretch = 5