Table of Contents

Method Func

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

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

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

public static Dim 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

Dim

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