New-SlideColumns

Arranges regions side-by-side.

SYNOPSIS

Arranges regions side-by-side.

SYNTAX

__AllParameterSets

New-SlideColumns [-Body] <scriptblock> [-Fill] [-HPadding <int>] [-VPadding <int>]

ALIASES

This cmdlet has no aliases.

DESCRIPTION

Arranges its child regions side-by-side in columns. The Body script block should contain New-SlideColumn calls, each defining one column. Widgets emitted directly in the body are wrapped in their own column.

EXAMPLES

Example 1: Two columns

New-SlideColumns {
    New-SlideColumn { New-SlideText -Text 'Left' }
    New-SlideColumn { New-SlideText -Text 'Right' }
}

Lays out two text widgets side by side.

PARAMETERS

-Body

The script block whose New-SlideColumn calls build the columns.

Type: System.Management.Automation.ScriptBlock
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Fill

Uses a fixed-size layout that clips overflow instead of a content-sized flow layout.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-HPadding

Left/right padding, in cells, around the widget. The default is 0.

Type: System.Int32
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-VPadding

Top/bottom padding, in rows, around the widget. The default is 1.

Type: System.Int32
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

PSSlideShow.Model.LayoutWidget

A layout widget to be emitted inside a New-Slide content block.

NOTES

Ratio/Size/MinSize on the child columns only take effect when Fill is specified.