Table of Contents

Method Layout

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Layout(Size)

Performs layout of the view and its subviews within the specified content size.

public bool Layout(Size contentSize)

Parameters

contentSize Size

Returns

bool

falseIf the view could not be laid out (typically because a dependencies was not ready).

Remarks

See the View Layout Deep Dive for more information: https://gui-cs.github.io/Terminal.GuiV2Docs/docs/layout.html

This method is intended to be called by the layout engine to prepare the view for layout and is exposed as a public API primarily for testing purposes.

Layout()

Performs layout of the view and its subviews using the content size of either the SuperView or Screen.

public bool Layout()

Returns

bool

falseIf the view could not be laid out (typically because dependency was not ready).

Remarks

See the View Layout Deep Dive for more information: https://gui-cs.github.io/Terminal.GuiV2Docs/docs/layout.html

This method is intended to be called by the layout engine to prepare the view for layout and is exposed as a public API primarily for testing purposes.