Table of Contents

Method AdvanceFocus

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

AdvanceFocus(NavigationDirection, TabBehavior?)

Advances the focus to the next or previous view in the focus chain, based on direction.

public bool AdvanceFocus(NavigationDirection direction, TabBehavior? behavior)

Parameters

direction NavigationDirection

The direction to advance.

behavior TabBehavior?

The tab behavior.

Returns

bool

true if focus was changed to another subview (or stayed on this one), false otherwise.

Remarks

If there is no next/previous view, the focus remains on the current view.