Skip to content
ConsoleMonster
Cmdlet

New-ConsoleGrid

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Layout.IWidget

Lays console widgets out in an equal-width grid.

Syntax

New-ConsoleGrid [-Columns <Int32>] [-Content] <ScriptBlock> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Lays console widgets out in an equal-width grid.

Children fill the grid row by row. When columns would become narrower than 24 cells the grid uses fewer columns.

Examples

Authored help example

EXAMPLE 1

New-ConsoleGrid -Content { }

Parameters

-Columns Int32 optional
Number of columns (default 2).
-Content ScriptBlock requiredposition: 0
Scriptblock that emits the cells.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.