Table of Contents

Method SetRelativeLayout

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

SetRelativeLayout(Size)

Sets the position and size of this view, relative to the SuperView's ContentSize (nominally the same as this.SuperView.GetContentSize ()) based on the values of X, Y, Width, and Height.

public bool SetRelativeLayout(Size superviewContentSize)

Parameters

superviewContentSize Size

The size of the SuperView's content (nominally the same as this.SuperView.GetContentSize ()).

Returns

bool

true if successful. false means a dependent View still needs layout.

Remarks

If X, Y, Width, or Height are absolute, they will be updated to reflect the new size and position of the view. Otherwise, they are left unchanged.

This method does not arrange subviews or adornments. It 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.

Some subviews may have SetRelativeLayout called on them as a side effect, particularly in DimAuto scenarios.