reckfellENGINE

GridContainer

A grid with a specified column count.

On this page
class GridContainerReckfellSharpInherits Container

Columns is a positive column count, default 1. Eligible child Controls fill rows in order; RTL affects horizontal direction. Column widths and row heights depend on participants and available space rather than a separate percentage per cell.

This is not width-driven automatic wrapping: use FlowContainer for that. Non-Control, TopLevel and hidden items do not occupy ordinary cells. Changing Columns requests layout; an immediately read child Size can still be stale.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

GridContainerConstructor
# GridContainer
C#
public GridContainer();

Creates a one-column grid. Set Columns >= 1 for another count.

Properties1

ColumnsProperty
# Columns
C#
public int Columns { get; set; }

Positive column count, default 1. A change requests relayout; not automatically chosen from width.

Methods2

GetColumnsint
# GetColumns
C#
public int GetColumns();

Positive column count, default 1. A change requests relayout; not automatically chosen from width.

Returns int

Current positive column count.

SetColumnsvoid
# SetColumns
C#
public void SetColumns(int columns);

Positive column count, default 1. A change requests relayout; not automatically chosen from width.

Parameters
NameTypeDefault
columnsint—
columns

Integer >= 1; zero and negative values are rejected.

Theme properties

These are Theme resource keys, not C# properties. Use the matching Control GetTheme…() and AddTheme…Override() methods for each value type.

Key and typeDescription
h_separation
int

The horizontal separation of child nodes.

Default: 4
v_separation
int

The vertical separation of child nodes.

Default: 4
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.