GridContainer
繼承: Container < Control < CanvasItem < Node < Object
將子控制項按照網格佈局排列的容器。
說明
GridContainer 會將其子控制項按照網格佈局排列。網格的列數由 columns 屬性指定,行數取決於容器中子控制項的數量。將保留每個大小的容器的列和行。
注意:GridContainer 只對繼承自 Control 的子節點生效。它不會重新排列繼承自 Node2D 的子節點。
教學
屬性
|
主題屬性
|
||
|
屬性說明
GridContainer 中的列數。修改後,GridContainer 會重新排列其衍生自 Control 的子節點,以適應新的佈局。
主題屬性說明
The horizontal separation of child nodes.
The vertical separation of child nodes.