Form

GPALTableLayoutPanel

Everything on Settings Every Control Takes applies here too. GPAL.TableLayoutPanelFor(columns, rows) builds one, and it is the only entry point: there is no GPAL.TableLayoutPanel to chain from. WithColumnCount and WithRowCount change how many of each it lays out, and WithGrowStyle says what it does when more controls arrive than it has cells: add rows, add columns, or neither. ColumnCount, RowCount and GrowStyle are also properties, so the layout changes while the form is up.

Examples

GPAL Fluent: High-level fluent C# API

//AddRows is the usual choice: a panel that cannot grow silently drops the controls that do not fit.

GPALTableLayoutPanel fields = GPAL.TableLayoutPanelFor(2, 3);


fields.WithGrowStyle(TableLayoutPanelGrowStyle.AddRows)

.WithName("fields");


// and changed later, while the form is up

fields.RowCount = 4;

💬 Ask GPAL