Table of Contents

Method SetSelection

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

SetSelection(int, bool)

Sets the selected item, optionally extending marking to create a range.

public void SetSelection(int item, bool extendExistingSelection)

Parameters

item int

The item index to select.

extendExistingSelection bool

If true and MarkMultiple is enabled, extends marking from the anchor point to item.