PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

MajorAxis

UITableLayout

TableMajorAxis

MajorAxis determines whether sibling UI elements are treated as rows or columns. Below, the left uses a Enum/TableMajorAxis of RowMajor, and the right uses ColumnMajor.

Row majorColumn major

Note: it seems that this property isn’t making noticeable changes, and rather its behavior is determined by UIGridStyleLayout/FillDirection instead.


Code Samples


Build UI Table

This code sample builds a table of 4 rows, the first having headers. It does this using some for-loops and a UITableLayout. The widths of each column are set using UISizeConstraints.