# UIGridLayout

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [UIGridStyleLayout](https://rapi.sleaze.dev/classes/UIGridStyleLayout.md), [UILayout](https://rapi.sleaze.dev/classes/UILayout.md), [UIComponent](https://rapi.sleaze.dev/classes/UIComponent.md), [UIBase](https://rapi.sleaze.dev/classes/UIBase.md), [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/UIGridLayout/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/UIGridLayout

Positions sibling UI elements by filling rows using the space of the parent UI element.

## Properties

### CellPadding

```luau
UIGridLayout.CellPadding: UDim2 = UDim2.new(0, 5, 0, 5)
```

- Tags: Read capabilities: UI

Determines how much space there is between elements in the grid.

### CellSize

```luau
UIGridLayout.CellSize: UDim2 = UDim2.new(0, 100, 0, 100)
```

- Tags: Read capabilities: UI

Determines the size of each element in the grid.

### FillDirectionMaxCells

```luau
UIGridLayout.FillDirectionMaxCells: number = 0
```

- Tags: Read capabilities: UI

Determines the maximum number of cells that may be used in a row or column before the next one is started.

### StartCorner

```luau
UIGridLayout.StartCorner: Enum.StartCorner = Enum.StartCorner.TopLeft
```

- Tags: Read capabilities: UI

Determines from which corner the grid starts laying out UI elements.

### AbsoluteCellCount

```luau
UIGridLayout.AbsoluteCellCount: Vector2 = Vector2.zero
```

- Tags: Read only, Thread unsafe, Read capabilities: UI

The number of elements in the grid.

### AbsoluteCellSize

```luau
UIGridLayout.AbsoluteCellSize: Vector2 = Vector2.new(100, 100)
```

- Tags: Read only, Thread unsafe, Read capabilities: UI

The absolute size of each element in the grid.

## Inherited members

- From [UIGridStyleLayout](https://rapi.sleaze.dev/classes/UIGridStyleLayout.md): `HorizontalAlignment`, `VerticalAlignment`, `FillDirection`, `SortOrder`, `AbsoluteContentSize`, `ApplyLayout`, `SetCustomSortFunction`
- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
