Table of Contents

Method AdjustSelection

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

AdjustSelection(int, bool)

The number of screen lines to move the currently selected object by. Supports negative values. offset. Each branch occupies 1 line on screen.

public void AdjustSelection(int offset, bool expandSelection = false)

Parameters

offset int

Positive to move the selection down the screen, negative to move it up

expandSelection bool

True to expand the selection (assuming MultiSelect is enabled). False to replace.

Remarks

If nothing is currently selected or the selected object is no longer in the tree then the first object in the tree is selected instead.