Table of Contents

Method SetFocus

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

SetFocus()

Causes this view to be focused. Calling this method has the same effect as setting HasFocus to true but with the added benefit of returning a value indicating whether the focus was set.

public bool SetFocus()

Returns

bool

true if the focus changed; true false otherwise.

Remarks

See the View Navigation Deep Dive for more information: https://gui-cs.github.io/Terminal.Gui/docs/navigation.html

OSZAR »