Aligning contents of LayoutItems
- 2 minutes to read
#Across-Group Alignment
Layout items are objects that associate labels with controls. The LayoutControl automatically aligns its layout items: the left edges of the item’s content regions are aligned to the largest label in all the layout items:
The LayoutControl aligns its layout items to the largest label in multiple groups.
The following image demonstrates layout groups that are arranged in two columns. The LayoutControl aligns its layout items with the same horizontal offset to the largest item label.
Note
The Layout
#Local Alignment
You can make LayoutControl align its items within an individual group separately from other groups. Set the LayoutGroup.ItemLabelsAlignment property to Local to align items in this group separately from other groups.
In the following image, Group 2’s LayoutGroup.ItemLabelsAlignment property is set to Local. The Group 2’s items are aligned to the largest label within this group. The other groups’ items are aligned to the largest label within these groups.
Note
The Layout