Table of Contents

Method Func

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

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

Creates a Pos object that computes the position based on the passed view and by executing the provided function. The function will be called every time the position is needed.

public static Pos Func(Func<View?, int> function, View? view = null)

Parameters

function Func<View, int>

The function to be executed.

view View

The view where the data will be retrieved.

Returns

Pos

The Pos returned from the function.