Cmdlet
New-ConsoleColumns
Places console widgets side by side.
Syntax
New-ConsoleColumns [-Content] <ScriptBlock> [-Fill] [-Gap <Int32>] [-Height <Int32>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Places console widgets side by side.
Children share the width equally unless they were created with -Weight. Children in a row share their height. On narrow terminals the columns stack vertically instead of squeezing content.
Examples
EXAMPLE 1
New-ConsoleColumns -Content { }Parameters
- -Content ScriptBlock
- Scriptblock that emits the child widgets.
- -Fill SwitchParameter
- Take the remaining height of a live dashboard.
- -Gap Int32
- Blank columns between children (default 1).
- -Height Int32
- Fixed height in rows for this row of columns.
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.