Function ElemPanel.getLayout

Get the layout object to adjust some properties. May be null.

T getLayout(T)()
if (is(T : ILayout));

Example

if (TableLayout t = panel.getLayout!TableLayout)
    t.colCount = 2;