Table of Contents

Constructor PosFunc

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

PosFunc(Func<View?, int>, View?)

Represents a position that is computed by executing a function that returns an integer position.

public PosFunc(Func<View?, int> Fn, View? View = null)

Parameters

Fn Func<View, int>

The function that computes the position. If this function throws LayoutException...

View View

The Pos returned from the function based on the passed view.

Remarks

This is a low-level API that is typically used internally by the layout system. Use the various static methods on the Pos class to create Pos objects instead.