Skip to content
ConsoleMonster
Class

WidgetLayout

ConsoleMonster

Namespace
ConsoleMonster
Assembly
ConsoleMonster
Modifiers
static

Layout-sizing endings shared by fluent chains and the PowerShell container adapter.

Inheritance

  • object
  • WidgetLayout

Methods

public static Sized Fill(IWidget widget, double weight = 1) #

Lets the widget take a share of the remaining row height or column width.

Parameters

widget ConsoleMonster.Layout.IWidget required
The configured widget.
weight double = 1 optional
Its relative share.

Returns

Sized The sized widget.
public static Sized Fixed(IWidget widget, int cells) #

Reserves a fixed number of cells for the widget.

Parameters

widget ConsoleMonster.Layout.IWidget required
The configured widget.
cells int required
The reserved cells.

Returns

Sized The sized widget.