ChildrenSize||doc136567

September 20, 2022

Format

GridView.ChildrenSize

Describe

The size of the child controls of the grid layout. When controlchildrensize of a grid layout is true, the sizes of all child controls of the layout will be adjusted to this value.

Code Example

image.png

--创建布局窗口
local APIRootWindow = UI:CreateGUIWindow("API")

--设置窗口到UI的根节点下
APIRootWindow.Parent = UI.Root

--根据名字获取到测试用的网格布局控件
local container = APIRootWindow.APIGridView

--设置网格布局控件的子集控件大小
container.ChildrenSize = Vector2.new(80,80)